UITableView can not handle long UITextView as subview in cell

Originator:an00na
Number:rdar://14615106 Date Originated:31-Jul-2013 10:24 PM
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 10 beta 1
Classification:Serious Bug Reproducible:Always
 
Summary:
Embedding a long UITextView in a cell in UITableView has some issues:
1. Content offset is not correct after text view becomes first responder.
2. Can not scroll up to reveal the bottom of text view.

Steps to Reproduce:
1. Run sample app on iOS 7.
2. Scroll to the bottom.
3. Tap the bottom of text view and let it become the first responder.
4. See the keyboard come up and text view scroll up — initially scroll up enough to reveal the cursor but then scroll down a bit to an incorrect position. 
5. Try scrolling manually up, to no avail.
6. Run it on iOS 6 and repeat 2~5 to compare.

Code: http://cl.ly/240R052Y2I2K

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!