UICollectionView控制台打印log错误信息解决

2016-07-26 14:41:24.212 TableViewAutoHeight[13033:273442] the behavior of the UICollectionViewFlowLayout is not defined because:
2016-07-26 14:41:24.213 TableViewAutoHeight[13033:273442] the item height must be less than the height of the UICollectionView minus the section insets top and bottom values, minus the content insets top and bottom values.
2016-07-26 14:41:24.213 TableViewAutoHeight[13033:273442] The relevant UICollectionViewFlowLayout instance is <UICollectionViewFlowLayout: 0x7fee005a6380>, and it is attached to <UICollectionView: 0x7fee0104d800; frame = (10 53.5; 355 151.5); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x7fee005a7270>; layer = <CALayer: 0x7fee005a6780>; contentOffset: {0, 0}; contentSize: {1875, 151.66666666666669}> collection view layout: <UICollectionViewFlowLayout: 0x7fee005a6380>.
2016-07-26 14:41:24.213 TableViewAutoHeight[13033:273442] Make a symbolic breakpoint at UICollectionViewFlowLayoutBreakForInvalidSizes to catch this in the debugger.

屏幕快照 2016-07-26 下午2.30.41.png
bug.gif

找到TheBugCell.m文件
注销line:87 报错代码
打开line:88
commond .
commond B
commond R
==> SUCCESS ==>报错完美解决 原因
/* the item height must be less than the height of the UICollectionView minus the section insets top and bottom values, minus the content insets top and bottom values.
该项目高度必须小于该UICollectionView减去部分插入顶部和底部的高值,减去内容插入顶部和底部的值。
*/
Demo: github
https://github.com/550872569/UICollectionView-log-.git

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 9,891评论 0 23
  • 不知不觉又到了毕业季,回想当初自己的毕业季就像梦境一样。 我们学校的实习是安排去学校当老师,而我也是在那个...
    夏日西瓜啵啵阅读 433评论 0 0
  • 天空总是让人遐想 无论好与坏 好时 晴空万里 让藏在身体里的懒虫 都想出来见见白云 坏时 乌云密布 大毛怪总会流露...
    布老头和他的家人们阅读 163评论 0 1
  • 愿意记录一下自己的点点滴滴,但朋友圈里总有这样那样的顾虑。 知道简书,是缘于一直关注的一个搜狐博客,胖嘟嘟乐颠颠的...
    大米媳妇小米妈妈阅读 304评论 0 0
  • 总是不喜欢别人欺骗我们,却时常很乐意自己欺骗自己。尤其是在许多细微的感受上,一不注意便掉入自己预先设计好的口袋里。...
    静丰书舍阅读 647评论 0 10