ios使用touchId
来源:互联网 发布:国际阿里云 编辑:程序博客网 时间:2024/05/22 13:12
#import <LocalAuthentication/LAContext.h>
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) { UIAlertView *al = [[UIAlertView alloc]initWithTitle:nil message:@"success" delegate:nil cancelButtonTitle:@"确定" otherButtonTitles: nil]; [al show]; NSLog(@"success"); // User authenticated successfully, take appropriate action } else { UIAlertView *al = [[UIAlertView alloc]initWithTitle:nil message:@"失败" delegate:nil cancelButtonTitle:@"确定" otherButtonTitles: nil]; [al show]; NSLog(@"faill"); } }]; } else { // Could not evaluate policy; look at authError and present an appropriate message to user }
1 0
- iOS TouchID的使用
- ios使用touchId
- ios TouchID的使用
- ios touchid
- iOS TouchID
- ios TouchId
- iOS TouchID验证和Keychain结合使用
- iOS指纹识别iOS TouchID
- iOS开发--touchID指纹识别
- iOS TouchID指纹验证
- iOS touchID 处理办法
- iOS 调用TouchID 身份验证
- iOS应用TouchID解锁
- iOS开发之TouchId
- iOS touchID集成
- iOS TouchID指纹解锁
- IOS8 TouchID使用介绍
- iOS8使用TouchID
- 使用渲染到纹理例子
- Android学习笔记——关于onConfigurationChanged(转)
- Selenium HtmlUnitDriver 多浏览器的支持
- 疯狂Android讲义源码
- 输出1000-1999之间的闰年
- ios使用touchId
- Mysql账号权限查询(grants)
- 协同过滤算法
- 写入文件
- Caused by: android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.B
- DLL注入方式
- JDBC链接Sql Server数据库常见错误
- compareTo与equals与==
- Spring Boot reads Json String as an object