How do i implement CHTCollectionViewWaterfallLayout?

1.1k Views Asked by At

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.

1

There are 1 best solutions below

7
sourav On BEST ANSWER

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 .