【发布时间】:2016-03-24 20:58:21
【问题描述】:
我正在使用CollectionViewWaterfallLayout。在“如何使用”部分,它说
您的集合视图的委托必须符合 CollectionViewWaterfallLayoutDelegate 协议并实现 required 方法,您需要做的就是返回原始大小 项目:
func collectionView(collectionView: UICollectionView, layout: UICollectionViewLayout, sizeForItemAtIndexPath indexPath: NSIndexPath) -> CGSize
我应该在这里做什么?如何让collection view的delegate符合CollectionViewWaterfallLayoutDelegate协议?
【问题讨论】: