在使用collectionView出现the item width must be less than the width of the UICollectionView minus the section insets left and right values.
的提示时,说明CollectionViewCell的宽高设置错了,
只要在- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath的方法中修改返回的size就可以了