Comments (3)
超过5张图片 ,选择叠加,循环和自动滚动都设置为NO,滑到最后一张图片的时候,图片会消失
贴一下你的参数 我没重现到
from wmzbanner.
感谢回复~我在你的demo中的代码👇
WMZBannerParam *param = BannerParam()
.wFrameSet(CGRectMake(10,100, BannerWitdh-140, BannerHeight*0.35))
.wItemSizeSet(CGSizeMake(BannerWitdh, BannerHeight*0.25))
.wDataSet([self getData])
.wEventScrollEndSet(^(id anyID, NSInteger index, BOOL isCenter, UICollectionViewCell *cell) {
NSLog(@"滚动到第%ld个",index);
})
//设置item的间距
.wLineSpacingSet(30)
//开启卡片叠加模式
.wCardOverLapSet(YES)
//毛玻璃背景
.wEffectSet(YES)
//循环
.wRepeatSet(NO)
//开启自动滚动
.wAutoScrollSet(NO)
//显示个数
;
WMZBannerView *viewOne = [[WMZBannerView alloc]initConfigureWithModel:param];
[self.view addSubview:viewOne];
- (NSArray*)getData{
return @[
@"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1576744105022&di=f4aadd0b85f93309a4629c998773ae83&imgtype=0&src=http%3A%2F%2Fimg.pconline.com.cn%2Fimages%2Fupload%2Fupc%2Ftx%2Fwallpaper%2F1206%2F07%2Fc0%2F11909864_1339034191111.jpg",
@"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3425860897,3737508983&fm=26&gp=0.jpg",
@"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1576744105022&di=f4aadd0b85f93309a4629c998773ae83&imgtype=0&src=http%3A%2F%2Fimg.pconline.com.cn%2Fimages%2Fupload%2Fupc%2Ftx%2Fwallpaper%2F1206%2F07%2Fc0%2F11909864_1339034191111.jpg",
@"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3425860897,3737508983&fm=26&gp=0.jpg"
,
@"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1576744105022&di=f4aadd0b85f93309a4629c998773ae83&imgtype=0&src=http%3A%2F%2Fimg.pconline.com.cn%2Fimages%2Fupload%2Fupc%2Ftx%2Fwallpaper%2F1206%2F07%2Fc0%2F11909864_1339034191111.jpg"
];
}
from wmzbanner.
我也发现这个问题了 老哥怎么解决的
from wmzbanner.
Related Issues (20)
- 链式语法有个很大的问题,就是如果对象是nil,调用block会crash HOT 1
- 拖拽结束,点击没有反应 HOT 3
- 如何调整pagecontrol 和cell 之间距离 HOT 2
- 1.2.0 wCustomControlSet frame 失效 HOT 5
- 设置成如下样式,滚动方向错误 HOT 2
- 宽度如何压缩
- 请问如何向左边自动滑? HOT 3
- 数组越界:*** -[__NSArrayI objectAtIndexedSubscript:]: index 1753 beyond bounds [0 .. 6] HOT 1
- 叠加式卡片轮播 (纵向) 的层级展示可以放到上面嘛 HOT 1
- 如何在滚动结束后获取最中间的 cell 或者index?
- 手势过大 会同时滚动很多张 如何只滚动一张? HOT 2
- 设计不合理,提出自己几点建议 HOT 3
- 一个轮播图里有多个自定义cell该如何设置 HOT 1
- 请问下老哥堆叠的样式,怎么才能滑动时,当前的page不放大? HOT 2
- 首次进入调用 - (void)scrolToPath:(NSIndexPath*)path animated:(BOOL)animated滚动错乱
- wPositionSet 置地有些问题想请教一下
- Swift 链式使用问题
- 无法使用Swift创建的UICollectionViewCell
- 叠加样式滚到到最后一个没有被放大,再划一下才能放大
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 wmzbanner.