Skip to content

abinop/Auto-height-ios8-UITableView-scroll-problem

Repository files navigation

This is an example that demonstrates the problem scrollToRowAtIndexPath has to calculate the correct height for a UITableView when each row has a height of its own.

If all rows have the same height then this is how it works ok

Here is an example of how it cannot scroll to bottom when the cells height is variable incorrect

When the height is standard, it works fine

correct

To test it, all you have to do is switch on/off the constraint on the row switch constraint