Comments (12)
这个不是 bug ,这个是因为你最后一个分区的数据太少了,无法滑到顶部,如果你给最后一个分区多加点数据就可以了。可以去看下饿了么,都是一样的
from linkage.
我加多了数据,还是那个问题
from linkage.
from linkage.
我用的模拟器是IPX
from linkage.
这个是没区别的啊,我这边 IPX 也是可以的,建议你去试验一下!
from linkage.
如果数据少的话,那就不能用这个框架了是吧
from linkage.
from linkage.
拼多多的搜索界面就是这样的,但是它的数据没有多少
from linkage.
我看了下,拼多多确实不一样,因为我们处理的逻辑不一样,拼多多在分区滑到第一行尾部的时候就切换左边的列表行,而我的这个框架是滑到分区尾部再切换。你可以在我的源码上做些修改,也可以达到一样的效果
from linkage.
// 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.
大神,能把这个思路的代码写出来吗,谢谢您了
from linkage.
我平时也有自己的工作,等我周末有时间帮你看看。
from linkage.
Related Issues (11)
- 您好,有个问题希望能够得到解决 HOT 1
- 上滑的时候 头部视图能否跟着上滑 HOT 1
- 优化:项目里修改了一个属性感觉效果更好了一点哈
- 问题 HOT 2
- 可以加一个头部吗 类似于饿了吗 滑动右边tableView 头部跟着上滑
- 环境iOS11.1 ,选中左边cell,右边常常滑到的数据并不对应 HOT 1
- 默认不选择第一个? HOT 2
- 发现一个小问题 HOT 1
- 可以实现添加类似于饿了吗的头部视图吗 上滑隐藏分栏悬停
- 滑动崩溃 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linkage.