Code Monkey home page Code Monkey logo

cuiyun / ylbanner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 211yang/ufabanner

0.0 2.0 0.0 776 KB

YLBanner是一个很好用的可高度配置循环轮播图开源项目,可同时支持本地图片和网络图片,支持自定义轮播时间和是否自动轮播,支持自定义默认图,不会滑倒一半卡住图片,没有内存泄漏,集成简单。喜欢的朋友记得分享和star哦,方便更多的朋友使用。

License: Apache License 2.0

Ruby 0.98% Objective-C 99.02%

ylbanner's Introduction

YLBanner

YLBanner是一个很好用的可高度配置循环轮播图开源项目,可同时支持本地图片和网络图片,支持自定义轮播时间和是否自动轮播,支持自定义默认图,不会滑倒一半卡住图片,没有内存泄漏,集成简单。喜欢的朋友记得分享和star哦,方便更多的朋友使用。

使用方法:将最里面的YLBanner文件夹拖自工程即可,集成代码如下:

YLBannerView *bannerFirst = [[YLBannerView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 200) images:imagesFirst];

YLBannerView *bannerFirst = [[YLBannerView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 200)];

[bannerFirst setImages:imagesFirst];

bannerFirst.shouldAuto = YES;//是否自动轮播

bannerFirst.autoScrollDelay = 3;//轮播时间间隔

bannerFirst.delegate = self;//设置点击图片代理

[bannerFirst setPlaceHolder:[UIImage imageNamed:@"placeHolder"]];//自定义默认图

其中,imagesFirst为轮播图实体对象数组。

注意:项目中使用到了第三方库SDWebImage加载图片,网络图片加载需要导入该框架。

ylbanner's People

Contributors

211yang avatar

Watchers

James Cloos avatar  avatar

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.