我在我的应用程序中使用触摸ID标识,当触摸ID警报显示时,背景颜色显示为渐变黑色,但是我想将颜色设置为清晰的颜色,以使背景视图清晰显示。我在Objective-C中使用“ LAContext”。有人可以推荐实现它的方法吗?
LAContext *myContext = [[LAContext alloc] init];
NSError *authError = nil;
NSString *myLocalizedReasonString = @"Please verify using Touch ID or cancel to use PIN login";
if ([myContext canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&authError]) {
[myContext evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics localizedReason:myLocalizedReasonString reply:^(BOOL success, NSError *error) {
// AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
if (success) {
NSLog(@"User is authenticated successfully");
dispatch_async(dispatch_get_main_queue(), ^{
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
[self login];
});
} else {
}
}
} else {
NSLog(@"Can not evaluate Touch ID");
}
我希望有人建议将背景颜色显示为清晰的视图。