chiahsien / CHTCollectionViewWaterfallLayout

The waterfall (i.e., Pinterest-like) layout for UICollectionView.
MIT License
4.53k stars 701 forks source link

How can I make myproject in CHTCollectionViewWaterfallLayout with AsyncDisplayKit #104

Open browniz421 opened 9 years ago

markmark1 commented 9 years ago

Yes I would like to make it work as well

On Thu, Jul 16, 2015 at 6:28 PM, jungjihun notifications@github.com wrote:


Reply to this email directly or view it on GitHub: https://github.com/chiahsien/CHTCollectionViewWaterfallLayout/issues/104

wpK commented 9 years ago

The only thing preventing you from using this with AsyncDisplayKit is the casting of the delegate. A quick fix to get you going would be to check if self.collectionView is an instanceof ASCollectionView and if so, return self.collectionView.asyncDelegate.

Although hackish, this will at least you get you up and running.

mikejd commented 9 years ago

@wpK, could you please elaborate (or give an example), how would you do that?