I created a new project just to test this.
Demo
Create a Master-Detail project. On the Main_iPhone.storyboard
:
- Change the prototype cell style to Custom.
- Make the Table View's row height
504
to fill the whole screen with each cell. - Put a
UITextView
filling the bottom half of the prototype cell. - In
MasterViewController.m
, Remove this line fromcellForRowAtIndexPath:
cell.textLabel.text = [object description];
Run the project and add some cells. Then tap on the text view to edit the content.
Description of the problem
Every time I tap on the Text View, the cell scrolls up to reveal the text view momentarily (as it should), and then scrolls back down so that the top of the cell is visible, which hides the text view behind the keyboard.
Video
This question has a video of the problem: UITableView in iOS 7 not scrolling to correct location when editing UITextView in cell
Question
What could be causing this? Can you find any Apple documentation that talks about how a UITableViewController handles keyboards?