问题描述如下:
出现以上问题:
the item width must be less than the width of the UICollectionView minus the section insets left and right values, minus the content insets left and right values.
主要是因为我使用了UICollectionView,并且用了UICollectionViewFlowLayout,才会报错,说是item的宽度不可以大于UICollectionView的宽度
解决方法,就是在原来的宽度基础上-10就好了,如下: