Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大神好,这个算是bug吗? #2

Closed
cararila opened this issue Aug 7, 2015 · 1 comment
Closed

大神好,这个算是bug吗? #2

cararila opened this issue Aug 7, 2015 · 1 comment

Comments

@cararila
Copy link

cararila commented Aug 7, 2015

这里的一个*位置放错了, 刚下载下来就报错, [cellsCountArrayPerRow enumerateObjectsUsingBlock:^(NSNumber __nonnull *cellsCount, NSUInteger cellsCountArrayPerRowIdx, BOOL * __nonnull stop)
导致一运行就报错,麻烦改下哦

  • (void)judgeMoreButtonShowWhenDefaultRowsCount:(NSUInteger)defaultRowsCount {
    [self.rowsCountPerSection enumerateObjectsUsingBlock:^(id __nonnull obj, NSUInteger idx, BOOL * __nonnull stop) {
    if ([obj integerValue] > defaultRowsCount) {
    [self.collectionHeaderMoreBtnHideBoolArray replaceObjectAtIndex:idx withObject:@no];
    } else {
    [self.collectionHeaderMoreBtnHideBoolArray replaceObjectAtIndex:idx withObject:@yES];
    }
    }];

    [self.cellsCountArrayPerRowInSections enumerateObjectsUsingBlock:^(id __nonnull cellsCountArrayPerRow, NSUInteger idx, BOOL * __nonnull stop) {
    NSUInteger __block sum = 0;
    [cellsCountArrayPerRow enumerateObjectsUsingBlock:^(NSNumber __nonnull *cellsCount, NSUInteger cellsCountArrayPerRowIdx, BOOL * __nonnull stop) {
    if (cellsCountArrayPerRowIdx < defaultRowsCount) {
    sum += [cellsCount integerValue];
    } else {
    //|break;| Stop enumerating ;if wanna continue use |return| to Skip this object
    //http://t.cn/RAsfoAi
    *stop = YES;
    return;
    }
    }];
    [self.firstRowCellCountArray replaceObjectAtIndex:idx withObject:@(sum)];
    }];
    }

@ChenYilong
Copy link
Owner

已经
修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants