在xcode版本9.4.1 This is a third-party library中,我运行了报告错误的项目,但是它也在库的示例项目中运行,因此没有错误报告。我不知道为什么,谢谢
-(CGFloat)lastItemMaxYForColumn:(NSInteger)columnIdx inSection:(NSInteger)sectionIdx {
NSArray * itemsInColumn = self.columnRectsInSection[@(sectionIdx)][columnIdx];
if (itemsInColumn.count == 0) {
if([self.headerFooterItemAttributes[UICollectionElementKindSectionHeader] count] > sectionIdx) {
CGRect headerFrame = [self.headerFooterItemAttributes[UICollecti//here is error --Multiple methods named 'frame' found onElementKindSectionHeader][sectionIdx] frame];with mismatched result, parameter type or attributes
return headerFrame.size.height;
return headerFrame.size.height;
}
return 0.0f;
} else {
CGRect lastItemRect = [[itemsInColumn lastObject] CGRectValue];
return CGRectGetMaxY(lastItemRect);
}
}