Last active
August 29, 2015 14:22
-
-
Save BradB132/0b1847ebb20d776a7786 to your computer and use it in GitHub Desktop.
GettingStartedWithCustomUICollectionViewLayouts-4
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
-(UICollectionViewLayoutAttributes *)layoutAttributesForItemAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
UICollectionViewLayoutAttributes* attr = [UICollectionViewLayoutAttributes layoutAttributesForCellWithIndexPath:indexPath]; | |
CGRect cellFrame = CGRectMake(/* calculate your origin x */, | |
/* calculate your origin y */, | |
/* calculate your width */, | |
/* calculate your height */); | |
attr.frame = cellFrame; | |
return attr; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment