partial void PressToLogin(UIButton sender) { if (TouchIdUtils.RequestAuthentication("For Secrets!")) { PerformSegue("LoggedIn", null); } else { var alert = new UIAlertView("nope", "you still have your fingers, yes?", null, "Ok"); alert.Show(); } }
public override void ViewDidLoad() { base.ViewDidLoad(); if (TouchIdUtils.IsPhoneSecured()) { TouchIdUtils.SetupTouchIdAuthentication(); } else { var alert = new UIAlertView("oops", "no touch id or passcode set. Might want to fix that", null, "Ok"); alert.Show(); } }