After rotate top cells bounds wasn't recalculated
sergianiskin opened this issue · 0 comments
sergianiskin commented
- Rotate to landscape
- Scroll to the bottom
- Call scrollToObjectAtIndex:0
- Rotate to portrait
Top cells bounds and positions wasn't recalculated. Its because if cached subviews. I solved this problem with one line added to layoutSubviews
if (_rotationActive)
{
_rotationActive = NO;
// After rotation need to update cached subviews array
[self setSubviewsCacheAsInvalid];