Merge pull request #1403 from hannahmbanana/fixCustomCollectionExampleApp

[CustomCollectionView Example] Fix shouldInvalidateLayoutForBoundsChange: method
This commit is contained in:
appleguy
2016-03-19 19:08:11 -07:00

View File

@@ -119,7 +119,7 @@
- (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds
{
if (!CGRectEqualToRect(self.collectionView.bounds, newBounds)) {
if (!CGSizeEqualToSize(self.collectionView.bounds.size, newBounds.size)) {
return YES;
}
return NO;