Latest 0.0.2
Homepage https://github.com/gaoyuhang/CycleBannerView
License MIT
Platforms ios 8.0
Dependencies SDWebImage

一般项目中会先把bannerView加入到视图中,再对一些属性进行配置,当接受到数据的时候再进行加载

    //添加到view上,做一些配置
    CycleBannerView *bannerView = [[CycleBannerView alloc] initWithFrame:CGRectMake(0, 100, ScreenWidth, 214)]; 
    bannerView.clickItemBlock = ^(NSInteger index) {
        NSLog(@" >>>>>>>> %ld",(long)index);
    };
    [self.view addSubview:bannerView];
    self.bannerView = bannerView;

    //在网络请求结束,把图片数组传递给bannerView即可
    self.bannerView.aryImg = aryImg;

Latest podspec

{
    "name": "CycleBannerView",
    "version": "0.0.2",
    "summary": "banner",
    "description": "its a banner",
    "homepage": "https://github.com/gaoyuhang/CycleBannerView",
    "license": {
        "type": "MIT",
        "file": "FILE_LICENSE"
    },
    "authors": "gaoyuhang",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/gaoyuhang/CycleBannerView.git",
        "tag": "v0.0.2"
    },
    "source_files": [
        "CycleBannerView",
        "CycleBannerView/**/*.{h,m}"
    ],
    "dependencies": {
        "SDWebImage": []
    }
}

Pin It on Pinterest

Share This