Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

图片过多滑动到最后一张图片问题 #43

Open
y-Han opened this issue Mar 31, 2021 · 3 comments
Open

图片过多滑动到最后一张图片问题 #43

y-Han opened this issue Mar 31, 2021 · 3 comments

Comments

@y-Han
Copy link

y-Han commented Mar 31, 2021

超过5张图片 ,选择叠加,循环和自动滚动都设置为NO,滑到最后一张图片的时候,图片会消失

@wwmz
Copy link
Owner

wwmz commented Apr 2, 2021

超过5张图片 ,选择叠加,循环和自动滚动都设置为NO,滑到最后一张图片的时候,图片会消失

贴一下你的参数 我没重现到

@y-Han
Copy link
Author

y-Han commented Apr 6, 2021

感谢回复~我在你的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"
    ];
    }

@jx250811165
Copy link

我也发现这个问题了 老哥怎么解决的

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants