blob: 8200cb1e0f004ea48ce65b2f8008adcffad24666 [file] [log] [blame]
{
"name": "SCLoopScrollView",
"version": "0.3",
"summary": "A View Can Infinite Loop Scroll.",
"description": " \n ##SCLoopScrollView\n\n\t\t\t\t\t##无限循环滚动视图\n\n\t\t\t\t\t> 可以同时在代码和Xib以及Storyboard中使用。\n\n\t\t\t\t\t> 只需要简单的设置一下图片源既可以,三行代码搞定无限循环广告视图。\n\n\t\t\t\t\t> 目前图片源支持图片链接和UIImage实例。\n\n\t\t\t\t\t-----------------\n\n\t\t\t\t\tInit By Yourself\n\t\t\t\t\t```{bash}\n\t\t\t\t\t NSArray *images = @[@\"http://e.hiphotos.baidu.com/image/w%3D310/sign=429b5adbbb014a90813e40bc99763971/622762d0f703918ffc60d8a3533d269759eec422.jpg\",\n\t\t\t\t\t [UIImage imageNamed:@\"0\"],\n\t\t\t\t\t @\"http://g.hiphotos.baidu.com/image/w%3D310/sign=9b62b9f379899e51788e3c1572a6d990/8718367adab44aed80ebd4eab11c8701a18bfb13.jpg\",\n\t\t\t\t\t [UIImage imageNamed:@\"1\"],\n\t\t\t\t\t @\"http://f.hiphotos.baidu.com/image/w%3D310/sign=544d5da6324e251fe2f7e2f99787c9c2/0824ab18972bd40720832c6179899e510eb309e1.jpg\",\n\t\t\t\t\t @\"http://www.huabian.com/uploadfile/2014/1008/20141008103712898.jpg\"];\n\n\t\t\t\t\t SCLoopScrollView *scrollView = [[SCLoopScrollView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, self.view.frame.size.width, 300.0f)];\n\t\t\t\t\t [self.view addSubview:scrollView];\n\t\t\t\t\t scrollView.images = images;\n\t\t\t\t\t [scrollView show:^(NSInteger index) {\n\t\t\t\t\t NSLog(@\"%@\", @(index));\n\t\t\t\t\t } finished:^(NSInteger index) {\n\t\t\t\t\t NSLog(@\"%@\", @(index));\n\t\t\t\t\t }];\n\t\t\t\t\t```\n\n\t\t\t\t\tInit By Storyboard\n\t\t\t\t\t```{bash}\n\t\t\t\t\t NSArray *images = @[@\"http://e.hiphotos.baidu.com/image/w%3D310/sign=429b5adbbb014a90813e40bc99763971/622762d0f703918ffc60d8a3533d269759eec422.jpg\",\n\t\t\t\t\t [UIImage imageNamed:@\"0\"],\n\t\t\t\t\t @\"http://g.hiphotos.baidu.com/image/w%3D310/sign=9b62b9f379899e51788e3c1572a6d990/8718367adab44aed80ebd4eab11c8701a18bfb13.jpg\",\n\t\t\t\t\t [UIImage imageNamed:@\"1\"],\n\t\t\t\t\t @\"http://f.hiphotos.baidu.com/image/w%3D310/sign=544d5da6324e251fe2f7e2f99787c9c2/0824ab18972bd40720832c6179899e510eb309e1.jpg\",\n\t\t\t\t\t @\"http://www.huabian.com/uploadfile/2014/1008/20141008103712898.jpg\"];\n\n\t\t\t\t\t _scrollView.images = images;\n\t\t\t\t\t [_scrollView show:^(NSInteger index) {\n\t\t\t\t\t NSLog(@\"%@\", @(index));\n\t\t\t\t\t } finished:^(NSInteger index) {\n\t\t\t\t\t NSLog(@\"%@\", @(index));\n\t\t\t\t\t }];\n\t\t\t\t\t```\n\n\n * Think: Why did you write this? What is the focus? What does it do?\n * CocoaPods will be using this to generate tags, and improve search results.\n * Try to keep it short, snappy and to the point.\n * Finally, don't worry about the indent, CocoaPods strips it!\n",
"homepage": "https://github.com/shicang1990/SCLoopScrollView",
"license": "MIT",
"authors": {
"ShiCang": "shicang1990@gmail.com"
},
"platforms": {
"ios": "7.0"
},
"source": {
"git": "https://github.com/shicang1990/SCLoopScrollView.git",
"tag": "0.3"
},
"source_files": [
"SCLoopScrollView",
"Class/*.{h,m}"
]
}