Latest 0.0.6
Homepage https://github.com/chrislian/CLRollingCycleView
License MIT
Platforms ios 6.0, requires ARC
Frameworks UIKit
Authors

首页循环滚动播放图片

imageView

安装

CocoaPods

  1. Podfile导入 pod 'CLRollingCycleView', '~> 0.0.2'
  2. 执行 pod install or pod update
  3. 导入 CLRollingCycleView.h

手动安装

  1. 下载CLRollingCycleView工程下的Classes文件的内容
  2. CLRollingCycleView/Classes文件拖拽到项目中
  3. 导入 CLRollingCycleView.h

使用方法

导入 import "CLRollingCycleView.h"

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.

    NSArray *array = @[[UIImage imageNamed:@"Barcelona0"],
                       [UIImage imageNamed:@"Barcelona1"],
                       [UIImage imageNamed:@"Barcelona2"],
                       [UIImage imageNamed:@"Barcelona3"]];

    CGRect rect = CGRectMake(0, 22, self.view.frame.size.width, self.view.frame.size.width/16*9);
    CLRollingCycleView *cycleView = [[CLRollingCycleView alloc]initWithFrame:rect];
    cycleView.delegate = self;
    cycleView.arrImage = array;
    cycleView.autoShow = true;

    [self.view addSubview:cycleView];
}

系统要求

最低支持iOS6.0

LICENSE

CLRollingCycleView使用MIT license,详情请见 LICENSE文件

Latest podspec

{
    "name": "CLRollingCycleView",
    "version": "0.0.6",
    "summary": "u5faau73afu6edau52a8u64adu653eu56feu7247",
    "description": "u5faau73afu6edau52a8u64adu653eu56feu7247,u81eau52a8u64adu653e,u624bu52a8u64adu653e",
    "homepage": "https://github.com/chrislian/CLRollingCycleView",
    "license": "MIT",
    "authors": {
        "chrislian": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/chrislian/CLRollingCycleView.git",
        "tag": "0.0.6"
    },
    "source_files": "CLRollingCycleView/Classes/*.{h,m}",
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This