Search code examples
iosparse-platformuicollectionviewpfquerytableviewcontrolle

How do i implement CHTCollectionViewWaterfallLayout?


I am using Parse PFQueryTableViewController, it shows images in a list, i want to use CHTCollectionViewWaterfallLayout to show the images in a grid way like instagram, how do i implement this? i did the cocoapod but the demo code is way different.


Solution

  • If you are using xib or story board

    select collectionView -> go to attribute inspector -> layout - select custom -> CHTCollectionViewWaterfallLayout
    

    Include this delegate CHTCollectionViewDelegateWaterfallLayout in .h file and the use those delegate methods and then you are ready to go .