Keyboard is hidden but hittable after cancel TouchId

Originator:stewwu
Number:rdar://28440950 Date Originated:23-Sep-2016
Status:Duplicate/26863570 Resolved:29-Sep-2016
Product:iOS SDK Product Version:10.0.1 (14A403)
Classification: Reproducible:Always
 
Summary:
We want users to be able to enter the password after canceling or failed to retrieve password via TouchId.
So we make the text field a first responder while keychain retrieval failed.
However, on iOS 10 the keyboard become invisible but still hittable while the text field becomes first responder.

There are some other people have the same issue:
http://stackoverflow.com/questions/39045675/ios-keyboard-inside-uiremotekeyboardwindow-is-not-shown-when-uitextfield-becom

Steps to Reproduce:
1. Here is our code snippet:
    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
        NSMutableDictionary *query = [self.class sacDictionary:key];
        if (prompt) {
            query[(__bridge id)kSecReturnData] = @YES;
            query[(__bridge id)kSecUseOperationPrompt] = prompt;
        }
        CFTypeRef dataTypeRef = NULL;
        OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef)[query copy], &dataTypeRef);
        if (status == errSecSuccess) {
            weakSelf.textField.text = (dataTypeRef ? [NSString stringWithUTF8String:[(__bridge_transfer NSData *)dataTypeRef bytes]] : nil);
        } else {
            [weakSelf.textField becomeFirstResponder];
        }
    });
2. click cancel after TouchId dialog popped
3. hit the area of keyboard

Expected Results:
The keyboard should appear.

Actual Results:
The keyboard is blank but hittable.

Version:
10.0.1 (14A403)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!