// 创建指纹验证对象
LAContext *context = [[LAContext alloc] init];
// 创建error
NSError *error = nil;
// 验证设备是否支持touchID
if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&error]) {
// 支持touchID
[context evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics localizedReason:@"XMGlocalizedReason" reply:^(BOOL success, NSError * _Nullable error) {
if (success) {