AZCollectionView Controller
Features
- Automatic pagination handling
- No more awkward empty CollectionView screen
- AZ CollectionVIew controller give you advantage to connect your (Loading, no result, error ) views via Interface builder
- You can also add your custom xib as dummy views (loading, error, no result)
Installation
CocoaPods
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
To integrate AZ CollectionVIew controller into your Xcode project using CocoaPods, specify it in your Podfile
:
Then, run the following command:
Usage
Step 1
- Extend your view controller from AZCollectionViewController
Step 2
- Same as AZTableVIewController
- Set the loading views outlet as given below
- Connect collectionView outlet as well
- To load views from custom .xib files
- If your xibs are in main bundle than use
Else use
Step 3
- And override AZCollectionView cellForRow function.
Step 4
- Override two more functions "fetchData" and "fetchNextData"
Done
Thats it, you successfully integrate AZCollectionViewController
License
AZCollectionViewController is available under the MIT license. See the LICENSE file for more info.
Author
Afroz Zaheer - (https://github.com/AfrozZaheer)