Latest 0.0.1
Homepage https://github.com/cheenbee/TCRotatorImageView
License MIT
Platforms ios 7.0, requires ARC
Dependencies SDWebImage
Authors

CI Status
Version
License
Platform
无限循环图片轮播器
demo

Installation

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

pod "TCRotatorImageView"

或者将 TCRotatorImageView 文件夹拖入工程中

Usage

//网络加载图片轮播器
TCRotatorImageView *rotatorImageView = [TCRotatorImageView rotatorImageViewWithFrame:frame imageURLStrigArray:imageUrlStrings placeholerImage:placeholderImage];

//本地加载图片轮播器
TCRotatorImageView *rotatorImageView = [TCRotatorImageView rotatorImageViewWithFrame:frame imageNameArray:localImageNamesArray];

详细配置

  1. rotatorImageView.delegate = self; //设置监听点击图片代理,请实现代理方法

  2. 自定义样式,请设置对应的属性
/** 自动轮播间隔, 默认为 2s */
@property (nonatomic, assign) CGFloat rotateTimeInterval;

/** 是否无限循环模式, 默认为 YES */
@property (nonatomic, assign, getter=isInfiniteLoopMode) BOOL infiniteLoopMode;

/** 是否自动滚动, 默认为 YES */
@property (nonatomic, assign, getter=isAutoScroll) BOOL autoScroll;

/** 是否在只有一张图片时隐藏 pageControl, 默认为 YES */
@property (nonatomic, assign, getter=isHidesForSinglePage) BOOL hidesForSinglePage;

/** pageControl 当前页小图标颜色*/
@property (nonatomic, strong) UIColor *currentPageIndicatorColor;

/** pageControl 所有小图标颜色*/
@property (nonatomic, strong) UIColor *pageIndicatorColor;
参考自最好用的图片轮播器

SDCycleScrollView

Latest podspec

{
    "name": "TCRotatorImageView",
    "version": "0.0.1",
    "summary": "u65e0u9650u5faau73afu8f6eu64adu5668",
    "description": "u53efu81eau5b9au4e49u7684u65e0u9650u5faau73afu8f6eu64adu56feu6846u67b6",
    "homepage": "https://github.com/cheenbee/TCRotatorImageView",
    "license": "MIT",
    "authors": {
        "cheenbee": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/cheenbee/TCRotatorImageView.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "TCRotatorImageView",
        "TCRotatorImageView/**/*.{h,m}"
    ],
    "requires_arc": true,
    "dependencies": {
        "SDWebImage": [
            "~> 3.7"
        ]
    }
}

Pin It on Pinterest

Share This