我正在使用触摸ID,它似乎工作正常推动我的视图,当发现sucesffull fingeer打印我的问题但是如何存储这个反对说天蓝色的用户记录,以便我可以查找客户数据最好的方法是什么。也就是说,一旦他们注册了app,我应该只有指纹阅读器才能激活。
以下代码是我用来抓住btn touch up里面的指纹
部分无效touchId(UIButton发件人) {
//Lets double check the device supports Touch ID
if (context.CanEvaluatePolicy(LAPolicy.DeviceOwnerAuthenticationWithBiometrics, out error))
{
var replyHandler = new LAContextReplyHandler((success, error) =>
{
InvokeOnMainThread(() =>
{
if (success)
{
var newVC = new UIViewController();
PresentViewController(newVC, true, null);
}
else
{
var alert = new UIAlertView("OOPS!", "Something went wrong.", null, "Oops", null);
alert.Show();
}
});
});
context.EvaluatePolicy(LAPolicy.DeviceOwnerAuthenticationWithBiometrics, "Logging in with Touch ID", replyHandler);
}
else
{
var alert = new UIAlertView("Error", "TouchID not available", null, "BOOO!", null);
alert.Show();
}
}