2015-01-28 21:55:17.790 Demo[636:9351] the behavior of the UICollectionViewFlowLayout is notdefined because:

2015-01-28 21:55:17.791 Demo[636:9351]the item height must be less than the height of the UICollectionView minus thesection insets top and bottom values.

错误原因:

UICollectionViewFlowLayout的itemSize的宽或者高设置的有问题!它的size必须在父容器的范围之内!

另外一种情况就是使用到了:

[cell.contentView.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];

然后再对Cell进行初始化, 也会出现这个问题..

解决方法:

注册Cell的重用可以解决

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
  • 2021-05-26
  • 2021-05-27
  • 2021-12-07
  • 2021-08-23
  • 2021-09-25
猜你喜欢
  • 2022-12-23
  • 2021-05-17
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2021-10-01
  • 2022-12-23
相关资源
相似解决方案