Latest 0.1.1
Homepage https://github.com/safiriGitHub/ZSBannerScrollView
License MIT
Platforms ios 8.0
Dependencies SDWebImage, FLAnimatedImage
Authors

CI Status
Version
License
Platform

Introduce

普通模式的banner轮播组件,支持基本的自定义,及GIF图播放。

依赖 sdwebImage4.0FLAnimatedImage1.0.12,图片会自动缓存及管理。使用cocoaPod安装会自动依赖,手动安装需要导入所需包。

内存随图片数量增多而增加,还未考虑超多图片的低内存实现,实际情况没有碰到很多banner图的需求。

TODO:还需丰富指示器样式及轮播样式等功能。

Example

example


@property (weak, nonatomic) IBOutlet ZSBannerScrollView *bannerView;

- (void)viewDidLoad
{
    [super viewDidLoad];

    //1.设置单个model,并设置本地image或者网络image
    //ZSBannerModel *model = [[ZSBannerModel alloc] init];
    //model.imageName = @"index_banner";
    //model.imageUrlString = @"http://image.suning.cn/images/nrgl/cpjs/17791746_20130309161255.jpg";
    //self.bannerView.slideForSigleImage = NO;
    //[self.bannerView refreshImageViewWithBannerImageArray:@[model]];

    //2.
    ZSBannerModel *model1 = [[ZSBannerModel alloc] init];
    model1.imageUrlString = @"http://image.suning.cn/images/nrgl/cpjs/17791746_20130309161255.jpg";

    ZSBannerModel *model2 = [[ZSBannerModel alloc] init];
    model2.imageUrlString = @"http://www.qiwen8.com/uploads/allimg/160512/134GI163-0-lp.gif?280_200";

    ZSBannerModel *model3 = [[ZSBannerModel alloc] init];
    model3.imageName = @"hahaha.gif";

    //无效地址
    ZSBannerModel *model4 = [[ZSBannerModel alloc] init];
    model4.imageUrlString = @"http://www.hahaha.com/vioappe/upload/showLocal.do?efileName=bannererewB_1.png";

    self.bannerView.defaultPlaceholderImageString = @"bannerplace.gif";
    self.bannerView.slideForSigleImage = NO;
    [self.bannerView refreshImageViewWithBannerImageArray:@[model1,model2,model3,model4]];

}

Installation

ZSBannerScrollView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "ZSBannerScrollView"

Author

safiriGitHub, [email protected]

License

ZSBannerScrollView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "ZSBannerScrollView",
    "version": "0.1.1",
    "summary": "u666eu901au6a21u5f0fu7684banneru8f6eu64adu7ec4u4ef6uff0cu652fu6301u57fau672cu7684u81eau5b9au4e49uff0cu53caGIFu56feu64adu653eu3002",
    "description": "u4f9du8d56 sdwebImage4.0 u53ca FLAnimatedImage1.0.12uff0cu56feu7247u4f1au81eau52a8u7f13u5b58u53cau7ba1u7406u3002u4f7fu7528cocoaPodu5b89u88c5u4f1au81eau52a8u4f9du8d56uff0cu624bu52a8u5b89u88c5u9700u8981u5bfcu5165u6240u9700u5305u3002nnu5185u5b58u968fu56feu7247u6570u91cfu589eu591au800cu589eu52a0uff0cu8fd8u672au8003u8651u8d85u591au56feu7247u7684u4f4eu5185u5b58u5b9eu73b0uff0cu5b9eu9645u60c5u51b5u6ca1u6709u78b0u5230u5f88u591abanneru56feu7684u9700u6c42u3002nnTODO:u8fd8u9700u4e30u5bccu6307u793au5668u6837u5f0fu53cau8f6eu64adu6837u5f0fu7b49u529fu80fdu3002",
    "homepage": "https://github.com/safiriGitHub/ZSBannerScrollView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "safiriGitHub": "[email protected]"
    },
    "source": {
        "git": "https://github.com/safiriGitHub/ZSBannerScrollView.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "ZSBannerScrollView/Classes/**/*",
    "dependencies": {
        "SDWebImage": [],
        "FLAnimatedImage": []
    }
}

Pin It on Pinterest

Share This