collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath 方法不調用

程序運行死活沒效果,後來斷點發現 -(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath 沒有調用。


解決方法:  self.automaticallyAdjustsScrollViewInsets = NO;//解決cellForItemAtIndexPath not called問題

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章