Example #1
0
        void ReleaseDesignerOutlets()
        {
            if (TermsHeightToolBarConstraint != null)
            {
                TermsHeightToolBarConstraint.Dispose();
                TermsHeightToolBarConstraint = null;
            }

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

            if (WebView != null)
            {
                WebView.Dispose();
                WebView = null;
            }
        }
Example #2
0
        private void UnHideToolbarView()
        {
            NavTitle = NavigationTitleView.Create();
            NavTitle.BtnBackOutlet.TouchUpInside += (object sender, EventArgs e) =>
            {
                DismissModalViewController(true);
            };
            NavTitle.BackMode();
            TermsToolBarContainer.AddSubview(NavTitle);

            NavTitle.TranslatesAutoresizingMaskIntoConstraints = false;
            NavTitle.RightAnchor.ConstraintEqualTo(TermsToolBarContainer.RightAnchor).Active   = true;
            NavTitle.TopAnchor.ConstraintEqualTo(TermsToolBarContainer.TopAnchor).Active       = true;
            NavTitle.BottomAnchor.ConstraintEqualTo(TermsToolBarContainer.BottomAnchor).Active = true;
            NavTitle.LeftAnchor.ConstraintEqualTo(TermsToolBarContainer.LeftAnchor).Active     = true;
            nfloat screenWidth   = UIScreen.MainScreen.Bounds.Width;
            nfloat toolbarHeight = (66f / 414f) * screenWidth;

            TermsHeightToolBarConstraint.Constant = toolbarHeight;
            View.UpdateConstraints();
        }