collectionView itemW宽度计算不对
([[UIScreen mainScreen] bounds].size.width - 28) / 4.00 没加括号
collectioView不能正常撑开
用flowLayout 不要用 代理方法!!!!
NMFourCollectFloatLayout *flow = [[NMFourCollectFloatLayout alloc]init];
flow.itemSize = CGSizeMake((kScreen_Width - 30) / 4.00, 105);
flow.minimumInteritemSpacing = 0;
下面的不行
//- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath {
// NSInteger count = self.dataSource.count > 0 ? self.dataSource.count : 1;
//
// CGFloat width = ([[UIScreen mainScreen] bounds].size.width - 50) / 4.00; // 25 30 60可以
// DZLog(@"width-%f,--%d,--%f",width,count, collectionView.width); // width-97.5 换行 97.250000 96.500000 96
// return CGSizeMake(width, 105);
//}
最新文章
- linux memcached安装
- jar包双击执行程序
- php 相对路径中 及 绝对路径中 的一些问题
- javascript时钟
- Dynamic Flash Messages
- 微信小程序大全(上)(最新整理 建议收藏)
- DataFrame使用总结1(超实用)
- js列表添加内容清除内容,时钟
- 关于现在互联网是否还有机会类的价值文章,为什么有人掉进互联网创业的坑里,可能因为ta不懂这些
- sql server alwayson 可用性组 只读路由的设置
- SQL GROUP BY对多个字段进行分组
- Mixins 混入选项操作
- Flutter学习之路---------第一个Flutter项目
- mysql字符集调整总结
- BZOJ2590 [Usaco2012 Feb]Cow Coupons
- Task 4.3 求环形数组的最大子数组和
- document.execCommand &; contenteditable
- Python Pygame (2) 事件
- Guardian of Decency UVALive - 3415(最大独立集板题)
- 五、配置jenkins定时构建或上游job触发构建