nianji / njcyclescrollview Goto Github PK
View Code? Open in Web Editor NEW可循环的scrollView
可循环的scrollView
有一种情况会导致循环失效。
如果vc中view中第一层是一个scrollView,然后CycleScrollView加在了这个scrollView中,scrollView拖动的过程中(或者手指只是点在scrollView上),CycleScrollView的循环就会停止,CycleScrollView中的计时器不会再调用。
我觉得这个应该是主线程的问题,所有的UI刷新必须在主线程,然后vc中scrollView的刷新阻塞了主线程,所以CycleScrollView中的计时器才会失效,不知道我理解的对不对。
请问这种情况有没有什么办法可以解决?
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.