Interactive keyboard dismissal jumps instead of smooth bounce

Originator:christoffer.buchholz
Number:rdar://19629856 Date Originated:28-Jan-2015 03:22 PM
Status:Open Resolved:
Product:iOS Product Version:8+
Classification:UI/Usability Reproducible:Always
 
Summary:
When interactively dismissing keyboard on UIScrollView with UIScrollViewKeyboardDismissModeInteractive on, the content jump before smoothly bouncing back to it's place.

Steps to Reproduce:
1. Open the attached iOS demo project
2. Create a new item
3. Tap the item to show the detail view
4. Click on the textview
5. Drag the keyboard down and let it go to dismiss it

Expected Results:
The content of the scroll view should smoothly bounce back to it’s original position, like in Messages and Mail.

Actual Results:
The content quickly jumps (to the top it seems) before it bounces back to it’s original position.

Notes:

I added a link[4] to a demo project based on the master-detail iOS template that reproduces the bug in DetailViewController.swift in about 25 lines. The method used to adjust the scrollview to the shown/hidden keyboard is what is shown in the IOS Developer Libraries “Managing the Keyboard”[1] in listing 5-1, so it should be sound enough.

I have also linked[2] to a video where you can see the bug in action, and the DetailViewController.swift[3] itself for your viewing pleasure.

[1]: https://developer.apple.com/library/ios/documentation/StringsTextFonts/Conceptual/TextAndWebiPhoneOS/KeyboardManagement/KeyboardManagement.html
[2]: http://cl.ly/3g3h2i2c0b3w
[3]: http://cl.ly/1E3N2a340z0J
[4]: http://cl.ly/06001T3B2X2b

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!