FaceID动画完成后如何准确获取回调?

时间:2019-08-19 05:45:24

标签: ios face-id

successBlock在FaceID动画完成之前执行

[self.LAContent evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics localizedReason:@"tip" reply:^(BOOL success, NSError * _Nullable error) {
    if (success) {
        dispatch_async(dispatch_get_main_queue(), ^{
            if (successBlock) {
                successBlock();
            }
        });
    }
    if (error) {
        dispatch_async(dispatch_get_main_queue(), ^{

    }
}];

0 个答案:

没有答案