NSInteger policy = LAPolicyDeviceOwnerAuthenticationWithBiometrics;
if ([UIDevice currentDevice].systemVersion.floatValue > 9.0) {
policy = LAPolicyDeviceOwnerAuthentication;
}
[context evaluatePolicy:policy
localizedReason:@"" reply:^(BOOL success, NSError * _Nullable error) {
}