Created
June 26, 2014 09:01
-
-
Save paweldudek/ec69177479dfc15fcab5 to your computer and use it in GitHub Desktop.
UICollectionView Layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface TAPCarouselCollectionViewLayout : UICollectionViewFlowLayout | |
@end | |
@implementation TAPCarouselCollectionViewLayout | |
#pragma mark - Invalidating Layout | |
- (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds { | |
return !CGSizeEqualToSize(self.collectionView.bounds.size, newBounds.size); | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment