コード例 #1
0
        void ReleaseDesignerOutlets()
        {
            if (CustomizedNavigationBarView != null)
            {
                CustomizedNavigationBarView.Dispose();
                CustomizedNavigationBarView = null;
            }

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

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

            if (ResetPasswordFormContainerView != null)
            {
                ResetPasswordFormContainerView.Dispose();
                ResetPasswordFormContainerView = null;
            }
        }
コード例 #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            ResetPasswordFormContainerView.Layer.CornerRadius = 5;

            UIButton backButton = new UIButton(UIButtonType.Custom);

            UIImageView backImageView = new UIImageView(new UIImage("Images/Navigation/RedBackIcon.jpg"));

            backImageView.Frame = new CGRect(0, 5, 12, 20);

            UILabel backTextLabel = new UILabel();

            backTextLabel.Text      = "Back";
            backTextLabel.Frame     = new CGRect(20, 0, 100, 30);
            backTextLabel.TextColor = UIColor.White;

            backButton.Frame = new CGRect(15, 0, 112, 30);
            backButton.AddSubview(backImageView);
            backButton.AddSubview(backTextLabel);
            backButton.TouchUpInside += Back;

            CustomizedNavigationBarView.AddSubview(backButton);
        }