void ReleaseDesignerOutlets() { if (VerifyButton != null) { VerifyButton.Dispose(); VerifyButton = null; } if (ChooseButton2 != null) { ChooseButton2.Dispose(); ChooseButton2 = null; } if (PersonView != null) { PersonView.Dispose(); PersonView = null; } if (PersonNameLabel != null) { PersonNameLabel.Dispose(); PersonNameLabel = null; } if (PersonImageView != null) { PersonImageView.Dispose(); PersonImageView = null; } }
public override void ViewDidLoad() { base.ViewDidLoad(); if (FaceState.Current.Verification.Type == VerificationType.FaceAndPerson) { ChooseButton2.SetTitle("Choose Person", UIControlState.Normal); PersonView.Hidden = false; PersonNameLabel.Text = string.Empty; //kill the 2nd CVC too Face2SelectionController.RemoveFromParentViewController(); } }