([[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);
//}

最新文章

  1. linux memcached安装
  2. jar包双击执行程序
  3. php 相对路径中 及 绝对路径中 的一些问题
  4. javascript时钟
  5. Dynamic Flash Messages
  6. 微信小程序大全(上)(最新整理 建议收藏)
  7. DataFrame使用总结1(超实用)
  8. js列表添加内容清除内容,时钟
  9. 关于现在互联网是否还有机会类的价值文章,为什么有人掉进互联网创业的坑里,可能因为ta不懂这些
  10. sql server alwayson 可用性组 只读路由的设置
  11. SQL GROUP BY对多个字段进行分组
  12. Mixins 混入选项操作
  13. Flutter学习之路---------第一个Flutter项目
  14. mysql字符集调整总结
  15. BZOJ2590 [Usaco2012 Feb]Cow Coupons
  16. Task 4.3 求环形数组的最大子数组和
  17. document.execCommand & contenteditable
  18. Python Pygame (2) 事件
  19. Guardian of Decency UVALive - 3415(最大独立集板题)
  20. 五、配置jenkins定时构建或上游job触发构建

热门文章

  1. list模块
  2. thinkphp隐藏模块实例
  3. 对sssp项目搭建的补充,总错误处理。
  4. 详解JQuery Ajax 在asp.net中使用总结
  5. 什么是mysql的元数据呢?
  6. ajax 同步
  7. windows cmd命令大全/cmd命令提示符大全
  8. 使用fetch出现unexpected end of input 解决方法
  9. block基本使用和底层
  10. MyBatis官方文档——入门