Comments (6)
是否考虑当点击某一张 banner 的时候, 手动停止定时器, 返回的时候再开启定时器?
from zybannerview.
后面可能考虑通过在 -scrollViewDidScroll:
中计算 scrollView 的 contentOffset
来做当前 item 的配置来计算 pageControl 的 currentPage
from zybannerview.
返回的时机不好判断啊
from zybannerview.
- (void)banner:(ZYBannerView *)banner didSelectItemAtIndex:(NSInteger)index
{
[banner stopTimer];
UIView *newWindow = [[UIView alloc] init];
newWindow.dismissBlock = ^{
[banner startTimer];
};
[newWindow show];
}
类似这样的可以吗
from zybannerview.
这样需要在所有可能的newWindow上都添加dismissBlock这个callback,自己的代码还好办,如果是第三方库提供的页面就改不了了
from zybannerview.
另外还有一个问题就是,如果一个页面同时有多个bannerView存在,你只暂停了其中一个还是不够的
from zybannerview.
Related Issues (20)
- 数据源个数返回1的时候崩溃 HOT 1
- 手动滚动时的问题 HOT 5
- 当数据源是Controller的View时有问题 HOT 3
- 请问我可否把你的ZYBannerView转到xamarin C#代码并公开在GitHub上 HOT 3
- 希望增加 currentPage 相关属性和回调 HOT 2
- banner滑动一周后图片空白问题 HOT 7
- 内存释放 HOT 2
- 数据源方法不会创建大量临时view? HOT 2
- view的位置在frame改变时会很奇怪 HOT 1
- 自定义两个页面 向左滑动后 然后往右滑动就会有空白页面展示出来 HOT 2
- 建议新增bounces属性支持
- 可以实现下拉变大吗
- layoutSubviews刷新frame的时机有问题
- 两个小建议 HOT 4
- 让她自然滑动超过一定张数的时候,图片会有卡顿的现象 HOT 3
- 请问支持自动布局么 HOT 3
- 作者您好 您的gif图是用什么软件制作的呢 HOT 3
- 改变item的大小 HOT 7
- 在 UITableView 中使用会卡顿。 HOT 2
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 zybannerview.