wwmz/WMZBanner

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

Opened this issue · 3 comments

y-Han commented

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

wwmz commented

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

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

y-Han commented

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

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