'NSInternalInconsistencyException', reason: 'UICollectionView received layout attributes for a cell with an index path that does not exist:
'NSInternalInconsistencyException', reason: 'UICollectionView received layout attributes for a cell with an index path that does not exist:
更新约束时添加
[self.collectionView.collectionViewLayout invalidateLayout]; 即可
发表回复