UITextField Keyboard Appears Behind UIAlertView Shadow

Originator:nicolasgomollon
Number:rdar://14385083 Date Originated:08-Jul-2013 09:39 PM
Status:Open Resolved:
Product:iOS SDK Product Version:7.0 beta 3 (11A4414e)
Classification:Serious Bug Reproducible:Always
 
Summary:
When displaying a UIAlertView with a UITextField in iOS 7, the UITextField keyboard appears behind the UIAlertView shadow, so the keyboard for the UITextField is unreachable.

Steps to Reproduce:
1. Open Xcode
2. Create a new "Single View Application"
3. Open "ViewController.m"
4. In the "viewDidLoad" method, instantiate a UIAlertView, and set its "alertViewStyle" to "UIAlertViewStylePlainTextInput"
5. Build and Run the Xcode project
6. Try tapping the keyboard keys

Expected Results:
The UITextField should receive the tapped keys.

Actual Results:
The keyboard appears behind the UIAlertView shadow, so the keyboard for the UITextField is unreachable.

Regression:
N/A

Notes:
Below is an example of the code required to reproduce the bug.

UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"My text field keyboard can’t be accessed!" message:nil delegate:nil cancelButtonTitle:@"Submit" otherButtonTitles:nil];
[alertView setAlertViewStyle:UIAlertViewStylePlainTextInput];
[alertView show];

09-Jul-2013 01:53 AM Nicolas Gomollon:
Workaround:
Tapping the UITextField before tapping the keyboard keys brings the keyboard into focus, allowing user input.

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!