Access to current keyboard status

Originator:an00na
Number:rdar://11205521 Date Originated:06-Apr-2012 11:16 PM
Status:Open Resolved:
Product:iPhone SDK Product Version:5.1
Classification:New Feature Reproducible:Not Applicable
 
Summary:
Without direct access to current keyboard status — whether the keyboard is shown and its frame — some situations can not be handled, and here is an example.

In view A, I have a text field. I tap a control to push in a new view controller B. View B only has a text view whose frame should be adjusted to accommodate the keyboard, and I always set the text view to be the first responder and the keyboard should show immediately when view B is pushed in.

I do the usual keyboard notification handling in view controller B. So if the keyboard is not shown before view B is pushed, there is no problem. However, if the text field in view A is the first responder and the keyboard is already shown when I push in view controller B, I won't receive UIKeyboardWillShowNotification/UIKeyboardDidShowNotification.


Steps to Reproduce:

Expected Results:

Actual Results:

Regression:

Notes:

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!