UICollectionView cellForItemAtIndexPath 方法不走

在storyboard 中

UICollectionView cellForItemAtIndexPath not called

被坑了好久,各种问题点查找,终于解决了

解决办法:

    self.automaticallyAdjustsScrollViewInsets = NO;//解决cellForItemAtIndexPath not called问题

原文地址:https://www.cnblogs.com/sandyzhang/p/5257905.html