CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Nov 2016 |
Maintained by cielpy.
CPYGridPagingLayout is a UICollectionViewLayout subclass used to show items like a grid.
CPYGridPagingLayout *layout = [[CPYGridPagingLayout alloc] init];
layout.numberOfColum = 5;
layout.numberOfLine = 3;
layout.itemSpacing = 10;
layout.lineSpacing = 10;
layout.direction = CPYGridPagingLayoutDirectionVertical;
UICollectionView *collectionView = [[UICollectionView alloc] initWithFrame:CGRectZero collectionViewLayout:layout];
collectionView.dataSource = self;
collectionView.delegate = self;
[self.view addSubview:collectionView];
// you can use autolayout to layout the collection view here
// and then you can change the layout's custom options if you need
CPYGridPagingLayout is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "CPYGridPagingLayout"
then follow the official tutorial to config your project.
Cielpy, [email protected]
CPYGridPagingLayout is available under the MIT license. See the LICENSE file for more info.