Giter Club home page Giter Club logo

collectionviewclassifymenu's Issues

算法太过复杂了

算法太过复杂了, UICollectionView不是有self-sizing么? 有没有关于这方面的资料?

复用后cell重叠

我想问一下您是怎么解决 cell 复用以后,不再调用 sizeForItemAtIndexPath 这个方法,导致的cell之间会彼此覆盖的问题的呢?我使用您的左对齐waterfalllayout的时候同样出现了复用后覆盖的问题,但是您的demo中就没有这个问题

大神好,这个算是bug吗?

这里的一个*位置放错了, 刚下载下来就报错, [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)];
    }];
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.