遇到一个诡异的问题,在iOS8上正常展示,但是在iOS7上不展示,断点发现
这货你不实现,iOS7不展示,collectionview不滚动。。。。不知道 还会不会出现其他的问题
- (NSArray *)layoutAttributesForElementsInRect:(CGRect)rect; // return an array layout attributes instances for all the views in the given rect
- (UICollectionViewLayoutAttributes *)layoutAttributesForItemAtIndexPath:(NSIndexPath *)indexPath;
这俩货居然都不走,最后才发现,还有这货没有实现:
- (CGSize)collectionViewContentSize; // Subclasses must override this method and use it to return the width and height of the collection view’s content. These values represent the width and height of all the content, not just the content that is currently visible. The collection view uses this information to configure its own content size to facilitate scrolling.
这货你不实现,iOS7不展示,collectionview不滚动。。。。不知道 还会不会出现其他的问题