Giter VIP home page Giter VIP logo

Comments (12)

leejayID avatar leejayID commented on May 23, 2024

这个不是 bug ,这个是因为你最后一个分区的数据太少了,无法滑到顶部,如果你给最后一个分区多加点数据就可以了。可以去看下饿了么,都是一样的

from linkage.

lzc1022 avatar lzc1022 commented on May 23, 2024

我加多了数据,还是那个问题

from linkage.

leejayID avatar leejayID commented on May 23, 2024

那你一个分区数据肯定不满一屏,你多加点,我这边可以哦
image.png

from linkage.

lzc1022 avatar lzc1022 commented on May 23, 2024

我用的模拟器是IPX

from linkage.

leejayID avatar leejayID commented on May 23, 2024

这个是没区别的啊,我这边 IPX 也是可以的,建议你去试验一下!
image.png

from linkage.

lzc1022 avatar lzc1022 commented on May 23, 2024

如果数据少的话,那就不能用这个框架了是吧

from linkage.

leejayID avatar leejayID commented on May 23, 2024

能用啊,饿了么也是这样的啊
image.png

from linkage.

lzc1022 avatar lzc1022 commented on May 23, 2024

拼多多的搜索界面就是这样的,但是它的数据没有多少

from linkage.

leejayID avatar leejayID commented on May 23, 2024

我看了下,拼多多确实不一样,因为我们处理的逻辑不一样,拼多多在分区滑到第一行尾部的时候就切换左边的列表行,而我的这个框架是滑到分区尾部再切换。你可以在我的源码上做些修改,也可以达到一样的效果

from linkage.

lzc1022 avatar lzc1022 commented on May 23, 2024

// CollectionView分区标题展示结束

  • (void)collectionView:(UICollectionView *)collectionView didEndDisplayingSupplementaryView:(nonnull UICollectionReusableView *)view forElementOfKind:(nonnull NSString *)elementKind atIndexPath:(nonnull NSIndexPath *)indexPath
    {
    // 当前CollectionView滚动的方向向下,CollectionView是用户拖拽而产生滚动的(主要是判断CollectionView是用户拖拽而滚动的,还是点击TableView而滚动的)
    if (_isScrollDown && collectionView.dragging)
    {
    [self selectRowAtIndexPath:indexPath.section + 1];
    }
    }
    是在这一块修改吗

from linkage.

lzc1022 avatar lzc1022 commented on May 23, 2024

大神,能把这个思路的代码写出来吗,谢谢您了

from linkage.

leejayID avatar leejayID commented on May 23, 2024

我平时也有自己的工作,等我周末有时间帮你看看。

from linkage.

Related Issues (11)

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.