touch id note

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
LAContext *lol = [[LAContext alloc] init];
NSError *error = nil;
NSString *message = @"message";
if ([lol canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&error]) {
[lol evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics localizedReason:message reply:^(BOOL succes, NSError *error)
{
if (succes) {
//do something
} else {
}
}];
} else {
}