程序運行死活沒效果,後來斷點發現 -(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath 沒有調用。
解決方法: self.automaticallyAdjustsScrollViewInsets = NO;//解決cellForItemAtIndexPath not called問題
程序運行死活沒效果,後來斷點發現 -(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath 沒有調用。
解決方法: self.automaticallyAdjustsScrollViewInsets = NO;//解決cellForItemAtIndexPath not called問題