美文网首页
ios 指纹识别功能

ios 指纹识别功能

作者: 孟维学 | 来源:发表于2016-07-22 11:44 被阅读17次

1.引入#import

2.- (IBAction)zhiwen:(id)sender {

LAContext *myContext = [[LAContext alloc] init];

NSError *authError = nil;

NSString *myLocalizedReasonString = @"请输入指纹";

if ([myContext canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&authError]) {

[myContext evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics

localizedReason:myLocalizedReasonString

reply:^(BOOL success, NSError *error) {

if (success) {

NSLog(@"dd");

UIAlertView *alert=[[UIAlertView alloc]initWithTitle:@"提醒" message:@"登录成功" delegate:self cancelButtonTitle:nil otherButtonTitles:@"ok", nil];

[alert show];

} else {

NSLog(@"ddddddddddd");

UIAlertView *alert=[[UIAlertView alloc]initWithTitle:@"提醒" message:@"不是你" delegate:self cancelButtonTitle:nil otherButtonTitles:@"ok", nil];

[alert show];

}

}];

} else {

NSLog(@"没有指纹识别功能");

}

}

相关文章

  • iOS Touch ID指纹识别(支付)

    指纹识别功能是iphone 5S之后推出的.SDK是iOS 8.0推出! 推出指纹识别功能的目的,是为了简化移动支...

  • 指纹识别

    指纹识别: 从iPhone5s开始,苹果手机有了指纹识别功能,而从iOS8.0开始,苹果开放了指纹识别的接口。 简...

  • iOS调取TouchID(指纹识别)

    导入头文件 因为指纹识别是苹果在iOS8才出的一个功能,所以进行判断是不是iOS8以及之后的系统版本 获取指纹识别

  • Touch ID

    使用iOS 8 SDK添加Touch ID指纹识别功能 - Puzhi的专栏 - 博客频道 - CS...

  • iOS指纹识别-iOS开发小模块功能

    实现iOS指纹验证功能指纹识别功能为本地认证的一种,因此首先需要包含

  • iOS Touch ID 开发教程

    一、Touch ID 简介 iOS系统的指纹识别功能最低支持的机型为iPhone 5s,最低支持系统为iOS 8,...

  • ios 指纹识别功能

    1.引入#import 2.- (IBAction)zhiwen:(id)sender { LAContext *...

  • iOS Touch ID

    iOS Touch ID 支持系统和机型 iOS系统的指纹识别功能最低支持的机型为iPhone 5s,最低支持系统...

  • 指纹识别

    要求 :iOS 系统必须是8.0以上,mac系统必须是10.10以上,在5S之上的设备才支持指纹识别功能。 iOS...

  • iOS Touch ID 使用详情

    简单介绍 支持系统和机型 iOS系统的指纹识别功能最低支持的机型为iPhone 5s,最低支持系统为iOS 8,虽...

网友评论

      本文标题:ios 指纹识别功能

      本文链接:https://www.haomeiwen.com/subject/zirijttx.html