发现多个名为“框架”的方法,结果,参数类型或属性不匹配

时间:2018-08-26 01:17:17

标签: ios

在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);
    }
}

This is a description of the error message

0 个答案:

没有答案