我的UICollectionView
單元格不會在iOS6上顯示,因爲我的委託方法cellForItemAtIndexPath
未被調用。我懷疑,因爲這一警告的:UICollectionView在iOS7上工作,但不在iOS6上
the behavior of the UICollectionViewFlowLayout is not defined because:
the item height must be less that the height of the `UICollectionView`
minus the section inset's top and bottom values.
我沒有得到iOS7警告,所有的細胞顯示正常也有。
我已將collectionView
框架設置爲.xib
中的高度270,並且沒有定義任何插槽。 我在.xib
中將我的細胞高度設置爲270。 我可以打印出在運行時我collectionView
框架和它的271
而且,我collectionview
實際上是一個自定義tableview
細胞內。
任何想法? 謝謝!
真不明白爲什麼這個工作,但它只是清除了UICollectionViewFlowLayout警告我已經調試在過去的兩小時。謝謝! – djibouti33
它實際上工作正常在ios7上,所以不幸的是,這個屬性不會幫助我在這種情況下,因爲我看到了ios6上的問題。 –