iOS 7: Keeping the displayed items in the viewing area after rotation of UICollectionView
问题 I'm using a UICollectionView with horizontal scrolling (Layout = UICollectionViewFlowLayout ). After rotation I adapt the content offset so that the same items are displayed before the rotation. On rotation the width of the items are changed, because there are always seven items on screen. My current approach does work for iOS 8, but not for iOS 7. On iOS 7 layoutAttributesForItemAtIndexPath always returns the same X position regardless of the orientation. So it seems that some frame is not