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.
找到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.
該項(xiàng)目高度必須小于該UICollectionView減去部分插入頂部和底部的高值附鸽,減去內(nèi)容插入頂部和底部的值邓厕。
*/
Demo: github
https://github.com/550872569/UICollectionView-log-.git