美文网首页
CollectionViewCell 不执行 cellForIt

CollectionViewCell 不执行 cellForIt

作者: 我一不小心就 | 来源:发表于2018-06-26 13:47 被阅读0次

问题描述:代码执行完

- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section

就不在执行,断点也跟踪不到
原因:

-(CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath;

方法中的数值大小为0,所导致。

参考:https://my.oschina.net/RainyZou/blog/537838

相关文章

网友评论

      本文标题:CollectionViewCell 不执行 cellForIt

      本文链接:https://www.haomeiwen.com/subject/hdapyftx.html