bug出現(xiàn)場景:
在UITableViewCell 中使用collectionView做瀑布流 加載更多數(shù)據(jù)時 出現(xiàn)。
(iPhone 6 大小的會出現(xiàn)這個問題 其他的plus肥败,X+ 都不會出現(xiàn))
bug顯示:
bug現(xiàn)象圖
cellForItemAtIndexPath代理方法打友劢恪:
cell沒有出列.png
自定義layout中的UICollectionViewLayoutAttributesArr:
56cell的frame.png
bug分析:
frame存在而沒有出列炭懊,讓layout重新布局
解決方法:(在自定義layout中讓layout重新布局)
- (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds {
return YES;
}
bug原因:
未知