Latest 0.1.5
Homepage https://github.com/yuanshuainiuniu/AdvertisingScrollView-banner
License MIT
Platforms ios 7.0, requires ARC
Authors

AdvertisingScrollView

image

做了一些优化,用3个imageView复用创建,支持横屏和竖屏播放(3imageView for reuse)

支持从网上下载图片(support load images from url)

后续会添加文字描述

a AdvertisingScrollView,can scroll auto,or by yourself.

使用方式:
Installation with CocoaPods:pod ‘MS_ScrollView’
或者下载demo

DragMSScrollView.h MSScrollView.m to your project
init:

NSArray *array = @[@"1.jpg",@"2.jpg",@"3.jpg"];
CGRect frame = CGRectMake(0, 0, self.view.frame.size.width, 105);
MSScrollView *scrollView = [[MSScrollView alloc] initWithFrame:frame
                                                        images:array
                                                      delegate:self
                                                     direction:MSCycleDirectionHorizontal
                                                      autoPlay:YES
                                                         delay:5.0];
[self.view addSubview:scrollView];
/*
 frame:set MSScrollView frame
 images:your imagenames
 delegate:
 direciton:MSCycleDirectionHorizontal or MSCycleDirectionVertical
 autoPlay:or play auto
 delay:tmer
*/

MSScrollViewDelegate


- (void)MSScrollView:(MSScrollView *)MSScrollView didSelectPage:(NSInteger)index;

- (void)MSScrollViewDidScroll:(UIScrollView *)scrollView;

Latest podspec

{
    "name": "MS_ScrollView",
    "version": "0.1.5",
    "summary": "The easiest way to use pull-to-refresh with Swift2.0 program language.",
    "homepage": "https://github.com/yuanshuainiuniu/AdvertisingScrollView-banner",
    "license": "MIT",
    "authors": {
        "yuanshuai": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/yuanshuainiuniu/AdvertisingScrollView-banner.git",
        "tag": "0.1.5"
    },
    "source_files": "MSScrollViewLib/**/*.{h,m}",
    "resources": "MSScrollViewLib/MSSource.bundle",
    "requires_arc": true
}

Pin It on Pinterest

Share This