UITableViewCell height resets to arbitrary value when pushing view controller
| Originator: | me | ||
| Number: | rdar://19576895 | Date Originated: | 01/23/15 |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | iOS 8.1 |
| Classification: | Bug | Reproducible: | Always |
Summary: When a UITableViewController is set up to display cells whose height is determined by auto layout, pushing a view controller onto the navigation stack resets the cell heights to an arbitrary value. Steps to Reproduce: 1. Create a UITableViewController in a storyboard. 2. Add some labels to a cell and add constraints. 3. Set the numberOfLines of those labels to 0. 4. Set the rowHeight of the table view controller’s tableView to UITableViewAutomaticDimension. 5. Configure the rest of the table view delegate methods normally. 6. Push a view controller either by segue or in -tableView:didSelectRowAtIndexPath: 7. Visible cells receive a -setFrame: call with an arbitrary height (in my testing, 44.0). Expected Results: I expected the cells to remain sized correctly. Actual Results: The visible cells’ heights reset.
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!