Custom keyboards sometimes report their EndFrame in a UIKeyboardWillShowNotification notification to have a height of 0
| Originator: | james.campbell | ||
| Number: | rdar://18469262 | Date Originated: | 26-Sep-2014 05:38 PM |
| Status: | Duplicate of 18373671 (Open) | Resolved: | |
| Product: | iOS | Product Version: | 8.0 |
| Classification: | UI/Usability | Reproducible: | Always |
Summary: I have a form build with a collection view inside of a view controller which I present modally, when a keyboard is shown I set the insets to the height of the keyboard so the contents of the collection view are pushed up. However if you start the initial editing of any textfield contained within a cell of this collection view, then the height reported by the UIKeyboardWillShowNotification notification will be 0, no matter if you switch then to a system keyboard. Unless you then switch to system keyboard, exit view controller and come back in and start editing. However if the first time you edit a text view in a cell of collection view with a system keyboard first, then everything works fine. Steps to Reproduce: Create modal view controller with collection view and cell with text field inside it. Edit it with system keyboard first, its fine. go back and reenter and edit it with custom keyboard being selected by default, notification's end frame's height will be 0. Expected Results: The end frame should be the exact size of the custom keyboard no matter what. Actual Results: A frame with a height of zero from the notification. Version: iOS 8.0 Notes: Configuration: iPhone 5C and iPod Touch 5th Gen Attachments:
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!