UITextField doesn't hide keyboard if resigned inside didBegin delegate method

Originator:heath.borders
Number:rdar://12279887 Date Originated:11-Sep-2012 05:14 PM
Status:Open Resolved:
Product:iPad SDK Product Version:Version 4.4.1 (4F1003)
Classification:Serious Bug Reproducible:Always
 
Summary:
UITextField does not hide keyboard if -[UITextField resignFirstResponder] is called within the -[UITextFieldDelegate textFieldDidBeginEditing:] callback.

Steps to Reproduce:
Using the provided test app, click notice that the keyboard never appears if you touch inside "Never Shows".
Touch Inside the "Start" UITextField
Touch Inside the "Doesn't Dismiss" UITextField

Expected Results:
The keyboard should hide

Actual Results:
The keyboard remains visible, but none of the UITextFields are the first responder.

Regression:

Notes:
Notice from the output that the "Start" UITextField's delegate received the -[UITextFieldDelegate textFieldDidEndEditing:] callback, and so the "Start" UITextField is not firstResponder.

The test app is available at 

https://github.com/hborders/UITextFieldKeyboardHideBug

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!