I got a security controller that trigger Touch ID when app become active. If user cancel the Touch ID box, a keyboard is shown to enter a digital code. But my keyboard is loaded (inputAccessoryView is drawn at good position) but invisible. I need to background and foreground the app to keyboard to be visible.
I tried this solution that doesn't work : Super slow lag/delay on initial keyboard animation of UITextField
if ([myContext canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&authError]) {
[myContext evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics localizedReason:myLocalizedReasonString
reply:^(BOOL success, NSError *error) {
if (success) {
dispatch_async(dispatch_get_main_queue(), ^{
NSLog(@"User authenticated successfully, take appropriate action");
});
} else {
NSLog(@"User did not authenticate successfully, look at error and take appropriate action");
dispatch_async(dispatch_get_main_queue(), ^(void){
[self._fieldSecurity becomeFirstResponder];
});
}
}];
} else {
NSLog(@"Could not evaluate policy; look at authError and present an appropriate message to user");
dispatch_async(dispatch_get_main_queue(), ^{
[self._fieldSecurity becomeFirstResponder];
});
}