lmf12 / mfnesttableview Goto Github PK
View Code? Open in Web Editor NEW多级 ScrollView 嵌套的实现方案。
多级 ScrollView 嵌套的实现方案。
用xib创建的,xib多大就多大,不会适配屏幕大小,布局都是xib拖好点,不会改变宽高
我发现网上大部分例子,包括很多app,实现类似这种滑动置顶效果的,在向上滑动到置顶处 急停时,cell点击第一次无效,第二次才有效。目前发现唯一没问题的是qq的联系人页面。
此问题真是难搞。
这样写也不灵
(void)nestTableViewContainerCanScroll:(MFNestTableView *)nestTableView {
// 当容器开始可以滚动时,将所有内容设置回到顶部
for (id view in self.viewList) {
UIScrollView *scrollView;
if ([view isKindOfClass:[UIScrollView class]]) {
scrollView = view;
} else if ([view isKindOfClass:[WKWebView class]]) {
scrollView = ((WKWebView *)view).scrollView;
}
if (scrollView) {
scrollView.contentOffset = CGPointZero;
}
}
}
在iPhone X真机和模拟器验证过,当将列表往上滑动至tabbar置顶时放开,- (void)nestTableViewDidScroll:(UIScrollView *)scrollView会不停的调用,进入死循环
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.