예제 #1
0
        private void LoadInitialGrids()
        {
            _monthGridView = CreateNewGrid(CurrentMonthYear);

            _monthGridView.Frame = new CGRect(new CGPoint(0, 0), _monthGridView.Frame.Size);

            _scrollView.AddSubview(_monthGridView);

            _monthGridView.Center = new CGPoint(_monthGridView.Center.X, _monthGridView.Center.Y);

            _scrollView.Frame = new CGRect(
                _scrollView.Frame.Location,
                new CGSize(_scrollView.Frame.Width, (_monthGridView.Lines) * DayCellHeight));

            _scrollView.ContentSize = _scrollView.Frame.Size;
            SetNeedsDisplay();

            UserInteractionEnabled = true;

            AdjustBackgroundColor();
        }