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.
Asked
Active
Viewed 1,127 times
1 Answers
2
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 .

sourav
- 779
- 5
- 14
-
after i include the .h file, what do i do? – farhan Dec 17 '15 at 12:09
-
go to the CHTCollectionViewDelegateWaterfallLayout and add the required methods in .m file . – sourav Dec 17 '15 at 12:13
-
how do you know which are required? – farhan Dec 17 '15 at 12:14
-
do i add the methods on top of the existing uicollectionview protocols? – farhan Dec 17 '15 at 12:15
-
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath; – sourav Dec 17 '15 at 12:17
-
read the .h file the it is written which method is required and which is optional . – sourav Dec 17 '15 at 12:18
-
Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/98226/discussion-between-sourav-and-farhan). – sourav Dec 17 '15 at 12:19