GithubHelp home page GithubHelp logo

Comments (3)

wwmz avatar wwmz commented on May 27, 2024

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

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

from wmzbanner.

y-Han avatar y-Han commented on May 27, 2024

感谢回复~我在你的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.

jx250811165 avatar jx250811165 commented on May 27, 2024

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

from wmzbanner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.