void ConfigureView() { IBGreetingLbl.Text = "Good Morning!"; IBNumberText.Text = ""; IBNumberText.TextColor = UIColor.Clear; IBCopyRightLbl.Text = StringConstants.Instance.CopyRightText; IBHintLbl.Text = StringConstants.Instance.ConfirmPhoneText; IBNumberText.Delegate = this; IBNumberText.TintColor = UIColor.Clear; IBContinueLbl.UserInteractionEnabled = false; var doneBar = new UIToolbar(new CoreGraphics.CGRect(0, 0, this.View.Frame.Width, 40)); var doneBtn = new UIBarButtonItem(UIBarButtonSystemItem.Done, (object sender, EventArgs e) => { IBNumberText.EndEditing(true); this.View.Frame = InitalFrame; }); var space = new UIBarButtonItem(UIBarButtonSystemItem.FlexibleSpace); doneBar.Items = new UIBarButtonItem[] { space, doneBtn }; IBNumberText.InputAccessoryView = doneBar; IBNumberValueLbl.AdjustsFontSizeToFitWidth = true; }
void ReleaseDesignerOutlets() { if (IBNumberValueLbl != null) { IBNumberValueLbl.Dispose(); IBNumberValueLbl = null; } if (IBBGImg != null) { IBBGImg.Dispose(); IBBGImg = null; } if (IBContinueBtn != null) { IBContinueBtn.Dispose(); IBContinueBtn = null; } if (IBContinueImg != null) { IBContinueImg.Dispose(); IBContinueImg = null; } if (IBContinueLbl != null) { IBContinueLbl.Dispose(); IBContinueLbl = null; } if (IBContntVw != null) { IBContntVw.Dispose(); IBContntVw = null; } if (IBCopyRightLbl != null) { IBCopyRightLbl.Dispose(); IBCopyRightLbl = null; } if (IBGreetingLbl != null) { IBGreetingLbl.Dispose(); IBGreetingLbl = null; } if (IBHintLbl != null) { IBHintLbl.Dispose(); IBHintLbl = null; } if (IBNumberText != null) { IBNumberText.Dispose(); IBNumberText = null; } if (IBTxtSepratorVw != null) { IBTxtSepratorVw.Dispose(); IBTxtSepratorVw = null; } }
partial void DoneClicked(Foundation.NSObject sender) { IBNumberText.EndEditing(true); this.View.Frame = InitalFrame; }