LBCollectionModel
This project will provide a collectionView delegate and data source class which implements the "Load more" option. To use this in your project you have to:
- copy the
LBCollectionModel
,LBFooter
andLBCell
classes into your project. - In your view controller you have to instantiate this class:
self.collectionModel = [[LBCollectionModel alloc] initWithCollectionView: self.myCollectionView];
- Perform an initial load:
[self.collectionModel loadInitialData];
- Inside the
LBCollectionModel
class implementation replace thefetchMoreDataFromTheServerOrFromDatabaseWithCount:
andconfigureCell:atIndexPath:
methods with your implementation.
That's it, enjoy!