刷新CollectionView 报错the item height must be less that the height of the UICollectionView minus the s(
Posted Travel.color
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了刷新CollectionView 报错the item height must be less that the height of the UICollectionView minus the s(相关的知识,希望对你有一定的参考价值。
数据请求到了之后 刷新CollectionView 出现下面的错误。
the behavior of the UICollectionViewFlowLayout is not defined because:
2015-03-16 10:56:45.898 XXXXX [664:60b] the item height must be less that the height of the UICollectionView minus the section insets top and bottom values.
有可能是数据在插入之前,页面还没有加载完,导致的错误。
网上找了好久,只要假如一句话就解决问题了:
self.automaticallyAdjustsScrollViewInsets = NO;
automaticallyAdjustsScrollViewInsets
为YES时,它会找view里的scrollView,并设置scrollView的contentInset为{64, 0, 0, 0}。如果你不想让scrollView的内容自动调整,将这个属性设为NO(默认值YES)。
以上是关于刷新CollectionView 报错the item height must be less that the height of the UICollectionView minus the s(的主要内容,如果未能解决你的问题,请参考以下文章
mysql报错The MySQL server is running with the LOCK_WRITE_GROWTH option so it cannot executethisstatem
错误记录Flutter 编译报错 ( The parameter ‘‘ can‘t have a value of ‘null‘ because of its type, but the im )(代
mysql报错--initialize specified but the data directory has files in it. Aborting.
docker报错the input device is not a TTY
flutter工程,无法运行,报错:The ‘java‘ plugin has been applied, but it is not compatible
virtualbox启动虚机报错:The VM session was closed before any attempt to power it on.