zoukankan      html  css  js  c++  java
  • touch id 开发

    min platform : 8.0

    #import <LocalAuthentication/LocalAuthentication.h>

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

        NSError *error = nil;

        if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&error]) {

            [context evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics localizedReason:@"指纹解锁" reply:^(BOOL success, NSError *error) {

                if (success) {

                    

                    [[NSOperationQueue mainQueue] addOperationWithBlock:^{

                        self.labelLevel.text = @"指纹验证成功";

                    }];

                }

                else

                {

                    NSLog(@"%@",[error description]);

                }

            }];

        }

  • 相关阅读:
    leetcode231
    leetcode326
    leetcode202
    leetcode121
    leetcode405
    leetcode415
    2019-9-2-win10-uwp-应用转后台清理内存
    2019-9-2-win10-uwp-应用转后台清理内存
    ACM学习心得
    ACM学习心得
  • 原文地址:https://www.cnblogs.com/Keys/p/5016665.html
Copyright © 2011-2022 走看看