Пример #1
0
        private void InitUI()
        {
            NavigationController.SetNavigationBarHidden(false, true);

            NavigationController.NavigationBar.SetBackgroundImage(NavigationController.NavigationBar.BarTintColor.ToImage(new CGRect(0, 0, NavigationController.View.Frame.Width, NavigationController.NavigationBar.Frame.Height + 20)), UIBarPosition.Any, UIBarMetrics.Default);
            NavigationController.NavigationBar.ShadowImage = NavigationController.NavigationBar.BarTintColor.ToImage(new CGRect(0, 0, NavigationController.View.Frame.Width, 1));

            var attributes = new UITextAttributes()
            {
                Font = UIFont.FromName("SanFranciscoText-Light", 13)
            };

            SortOrderSegmentedControl.SetTitleTextAttributes(attributes, UIControlState.Normal);

            NameLabel.Text = ViewModel.Title;
        }
Пример #2
0
        void ReleaseDesignerOutlets()
        {
            if (AccountImageView != null)
            {
                AccountImageView.Dispose();
                AccountImageView = null;
            }

            if (AccountImageViewTrailingConstraint != null)
            {
                AccountImageViewTrailingConstraint.Dispose();
                AccountImageViewTrailingConstraint = null;
            }

            if (AccountsView != null)
            {
                AccountsView.Dispose();
                AccountsView = null;
            }

            if (HeaderView != null)
            {
                HeaderView.Dispose();
                HeaderView = null;
            }

            if (HeaderViewTopConstraint != null)
            {
                HeaderViewTopConstraint.Dispose();
                HeaderViewTopConstraint = null;
            }

            if (NameLabel != null)
            {
                NameLabel.Dispose();
                NameLabel = null;
            }

            if (PostBarButton != null)
            {
                PostBarButton.Dispose();
                PostBarButton = null;
            }

            if (SortOrderSegmentedControl != null)
            {
                SortOrderSegmentedControl.Dispose();
                SortOrderSegmentedControl = null;
            }

            if (TableViewTopConstraint != null)
            {
                TableViewTopConstraint.Dispose();
                TableViewTopConstraint = null;
            }

            if (SignedOutLabel != null)
            {
                SignedOutLabel.Dispose();
                SignedOutLabel = null;
            }
        }