Closed tang786472181 closed 2 years ago
"request for layout attributes for decoration view of kind ZLCollectionReusableView in section 0 when there are only 0 sections in the collection view"
ZLCollectionViewBaseFlowLayout
(NSArray )layoutAttributesForElementsInRect:(CGRect)rect { NSArray superAttris = [super layoutAttributesForElementsInRect: rect]; // 判断是否有数据源 if (self.collectionView.numberOfSections == 0) { return superAttris; }
// 原逻辑 .... } }
已加入
谢谢
"request for layout attributes for decoration view of kind ZLCollectionReusableView in section 0 when there are only 0 sections in the collection view"
ZLCollectionViewBaseFlowLayout
pragma mark - 所有cell和view的布局属性
(NSArray )layoutAttributesForElementsInRect:(CGRect)rect { NSArray superAttris = [super layoutAttributesForElementsInRect: rect]; // 判断是否有数据源 if (self.collectionView.numberOfSections == 0) { return superAttris; }
// 原逻辑 .... } }