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
More Related Contents:
- Programmatically Request Access to Contacts
- targetContentOffsetForProposedContentOffset:withScrollingVelocity without subclassing UICollectionViewFlowLayout
- What properties can I set via an UIAppearance proxy?
- Autorotate in iOS 6 has strange behaviour
- iOS Autolayout – How to set two different distances between views, depends on the screen height
- iOS 6 shouldAutorotate: is NOT being called
- How do you determine spacing between cells in UICollectionView flowLayout
- iOS6: supportedInterfaceOrientations not working (is invoked but the interface still rotates)
- What is the iOS 6 user agent string?
- UICollectionView animations (insert/delete items)
- Interface orientation in iOS 6.0
- dismissModalViewController AND pass data back
- iPhone viewWillAppear not firing
- How to parse a date string into an NSDate object in iOS?
- iOS – color on Xcode simulator is different from the color on device
- How to get the CGPoint(s) of a CGPath
- How to draw a custom UIView that is just a circle – iPhone app
- Background image not showing on iPad and iPhone
- iOS device orientation disregarding orientation lock
- How To Build and Compile PJSIP for Xcode, Using sample code IPJSUA to test?
- UITableView Scroll event
- How to programmatically differentiate between iphone 4 and iphone 4S?
- UICollectionView Decoration View
- How to convert HEX to NSString in Objective-C?
- Get location name from Latitude & Longitude in iOS
- MOV to Mp4 video conversion iPhone programmatically
- Can you use cancel/isCancelled with GCD/dispatch_async?
- Prevent scrolling in a MKMapView, also when zooming
- Making a call programmatically from iPhone app and returning back to the app after ending the call
- Really cool way to create custom UITabBar for iPhone app?