'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]; 即可

评论

0条评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注