Latest 0.0.5
Homepage https://github.com/cocoa-chen/TXCycleScrollView
License MIT
Platforms ios 7.0, requires ARC
Dependencies SDWebImage
Frameworks Foundation, UIKit
Authors

This is an infinite scrollView for iOS,will autoScroll to next page.
First,edit you Podfile

pod 'TXCycleScrollView'

then edit you code like this.

self.bannerList = @[
                    @"http://dynamic-image.yesky.com/740x-/uploadImages/2014/188/15/4EABKK639PIS.jpg",
                    @"http://img1.3lian.com/2015/a2/239/d/289.jpg",
                    @"http://img.hb.aicdn.com/66ec45fe337d20fdb5050aaf81048b8975a518aa1a0f7-J9kgSC_fw580",
                    @"http://img0.ph.126.net/Y3AM_Lxfz4fonBDQpNlkSQ==/6597234693400985046.jpg"
                    ];

TXCycleScrollView *bannerView = [[TXCycleScrollView alloc] initWithFrame:CGRectMake(0, 0, 300, 200)];
bannerView.delegate = self;
bannerView.imageUrls = self.bannerList;
[self.view addSubview:bannerView];

TXCycleScrollView *bannerView2 = [[TXCycleScrollView alloc] initWithFrame:CGRectMake(0, 0, 300, 200)];
bannerView2.delegate = self;
bannerView2.autoScroll = NO; //will not auto Scroll
bannerView2.continuous = NO; // infinite will be no
bannerView2.imageUrls = self.bannerList;
[self.view addSubview:bannerView2];

Latest podspec

{
    "name": "TXCycleScrollView",
    "version": "0.0.5",
    "summary": "Infinite ScrollView with autoScroll.",
    "description": "Auto scroll infinite banner for iOS.",
    "homepage": "https://github.com/cocoa-chen/TXCycleScrollView",
    "license": "MIT",
    "authors": {
        "u9648u7231u5f6c": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/cocoa-chen/TXCycleScrollView.git",
        "tag": "0.0.5"
    },
    "source_files": "src/TXCycleScrollView/*.{h,m}",
    "requires_arc": true,
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "dependencies": {
        "SDWebImage": []
    }
}

Pin It on Pinterest

Share This