Created
December 12, 2013 11:08
-
-
Save urouro/7926405 to your computer and use it in GitHub Desktop.
UICollectionView のマージンを詰める ref: http://qiita.com/uro_uro_/items/6e86e6be575e22a6fb20
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
- (CGSize)collectionView:(UICollectionView*)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
return CGSizeMake(160.0f, 160.0f); | |
} | |
- (UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout insetForSectionAtIndex:(NSInteger)section | |
{ | |
return UIEdgeInsetsMake(0.0f, 0.0f, 0.0f, 0.0f); | |
} | |
- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout minimumInteritemSpacingForSectionAtIndex:(NSInteger)section | |
{ | |
return 0.0f; | |
} | |
- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout minimumLineSpacingForSectionAtIndex:(NSInteger)section | |
{ | |
return 0.0f; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment