UICollectionView控制臺(tái)打印log錯(cuò)誤信息解決

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 報(bào)錯(cuò)代碼
打開line:88
commond .
commond B
commond R
==> SUCCESS ==>報(bào)錯(cuò)完美解決 原因
/* 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

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • **2014真題Directions:Read the following text. Choose the be...
    又是夜半驚坐起閱讀 11,081評(píng)論 0 23
  • 不知不覺又到了畢業(yè)季,回想當(dāng)初自己的畢業(yè)季就像夢(mèng)境一樣。 我們學(xué)校的實(shí)習(xí)是安排去學(xué)校當(dāng)老師,而我也是在那個(gè)...
    夏日西瓜啵啵閱讀 481評(píng)論 0 0
  • 天空總是讓人遐想 無論好與壞 好時(shí) 晴空萬里 讓藏在身體里的懶蟲 都想出來見見白云 壞時(shí) 烏云密布 大毛怪總會(huì)流露...
    布老頭和他的家人們閱讀 195評(píng)論 0 1
  • 愿意記錄一下自己的點(diǎn)點(diǎn)滴滴,但朋友圈里總有這樣那樣的顧慮。 知道簡(jiǎn)書,是緣于一直關(guān)注的一個(gè)搜狐博客,胖嘟嘟樂顛顛的...
    大米媳婦小米媽媽閱讀 331評(píng)論 0 0
  • 總是不喜歡別人欺騙我們,卻時(shí)常很樂意自己欺騙自己。尤其是在許多細(xì)微的感受上,一不注意便掉入自己預(yù)先設(shè)計(jì)好的口袋里。...
    靜豐書舍閱讀 693評(píng)論 0 10

友情鏈接更多精彩內(nèi)容