Dynamically setting layout on UICollectionView causes inexplicable contentOffset change

UICollectionViewLayout contains the overridable method targetContentOffsetForProposedContentOffset: which allows you to provide the proper content offset during a change of layout, and this will animate correctly. This is available in iOS 7.0 and above

Leave a Comment