UICollectionView瀑布流布局
查看次数:3298
下载次数:883
上传时间:2017-01-22
大小:3 KB
大体思路:
1、在FlowLayout里面的prepareLayout方法中计算所有cell及“底部上拉加载更多视图”的frame
2、在layoutAttributesForElementsInRect中返回上一部我们计算好的frame的集合
3、在collectionViewContentSize中重新计算UICollectionView的内容尺寸
核心文件:ShopFlowLayout
收藏