UIScrollView's keyboard dismiss mode should work irrespective of content size
| Originator: | vladimir.fleurima | ||
| Number: | rdar://14839243 | Date Originated: | 26-Aug-2013 04:41 PM |
| Status: | Open | Resolved: | NO |
| Product: | iOS SDK | Product Version: | 7 seed 5 |
| Classification: | UI/Usability | Reproducible: | Always |
Summary: In iOS 7, UIScrollView has new functionality that allows the keyboard to be dismissed either on drag or interactively, which is especially useful when working with UITextView, a subclass of UIScrollView. This keyboard dismiss functionality works well when the content size of the text view is greater than its bounds, e.g. when the text view is scrollable. When the text view isn't scrollable, however, this functionality no longer works. This doesn't make sense. It requires the application to compromise on user experience by either a) providing some sort of dismiss button, defeating the purpose of setting a keyboard dismiss mode or b) forcing the text view to be scrollable even when its content is much smaller than its bounds. Steps to Reproduce: 1. Create a new single-view iPhone application in Xcode. 2. Add a full-screen text view with one line of default text. 3. Mark the text view as editable and change the keyboard dismiss mode to interactive. 4. Run the app. 5. Tap on the text view. The system keyboard will appear. Expected Results: Dragging the keyboard will cause it to be dismissed. Actual Results: Dragging the keyboard will perform no action. Regression: N/A Workaround: Set the alwaysBounceVertical property of the text view to YES. This will allow the keyboard to be dismissed while introducing an undesired UI side effect. 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!