Scrolling with variable sized cells is not smooth
| Originator: | paul | ||
| Number: | rdar://19702625 | Date Originated: | Jan 27, 2015 |
| Status: | open | Resolved: | no |
| Product: | iPhone SDK | Product Version: | iOS 8.1 |
| Classification: | Other Bug | Reproducible: | Yes |
Scrolling with a table view with cells sized using UITableViewAutomaticDimension and estimatedRowHeight is very jumpy when returning to the view and scrolling towards the top of the table. Scrolling is ok in this situation if all of the cells are of the same size and you can provide an accurate estimatedRowHeight but when the cells are of varying height scrolling becomes very jumpy without an obvious solution for making scrolling smooth. In our application we have a view with very varied dynamic cell heights, this is where the problem is most prevalent. We looked into implementing the delegate for estimatedHeightForRowAtIndexPath but this seemed to remove all benefit of using UITableViewAutomaticDimension. STEPS TO REPRODUCE Using the project provided: https://github.com/IndieGoGo/JumpyScrollExample 1. scroll down until a number of cells have scrolled out of view 2. tap one of the cells which will bring you to a new view, if you have Slow Animations on you will notice the table jump right before the transition starts 3. press the Back button to go back to the table view 4. scroll towards the top of the table, notice the cells are jumping, scrolling is not smooth This would be a very poor experience for our users, we need the scrolling to be smooth when returning to the table view.
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!
Your radar number is wrong. Please fix this.
Updated radar://19702625 link
sorry we first placed a TSI number, fixed to rdar://19702625
Related issue
Similar to this Stuttering & incorrect contentOffset issues when segueing back to a UITableView using self-sizing cells
Project that demonstrates this issue