面试题答案
一键面试numberOfSectionsInCollectionView:
- 作用:返回
UICollectionView
的分区数。
- 作用:返回
collectionView:numberOfItemsInSection:
- 作用:返回指定分区中的单元格数量。
collectionView:cellForItemAtIndexPath:
- 作用:为指定索引路径创建并返回一个配置好的单元格。
numberOfSectionsInCollectionView:
UICollectionView
的分区数。collectionView:numberOfItemsInSection:
collectionView:cellForItemAtIndexPath: