Latest 1.0.0
Homepage https://github.com/blurryssky/BSCycleThroughView
License MIT
Platforms ios 8.0
Dependencies Kingfisher
Authors

BSCycleImagesView

Overview

BSCycleImagesViewGIF.gif

Installation

use_frameworks!

pod ‘BSCycleThroughView’

Usage

Supple an array with models as datasource

@IBOutlet weak var cycleThroughView: BSCycleThroughView!
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.

        cycleThroughView.scrollTimeInterval = 5

        var images: [UIImage] = []
        for i in 1...4 {
            let image = UIImage(contentsOfFile: Bundle.main.path(forResource: "(i)", ofType: ".jpg")!)!
            images.append(image)
        }

        // set local images
        cycleThroughView.images = images

        // set image urls
        cycleThroughView.imageUrlStrings = ["http://s9.knowsky.com/bizhi/l/55001-65000/2009529123133602476178.jpg",
                                           "http://img4.duitang.com/uploads/item/201403/31/20140331094819_dayKx.jpeg",
                                           "http://i1.17173cdn.com/9ih5jd/YWxqaGBf/forum/images/2014/08/05/201143hmymxmizwmqi86yi.jpg",
                                           "http://p1.image.hiapk.com/uploads/allimg/150413/7730-150413103526-51.jpg"]

        cycleThroughView.imageDidSelectedClousure = { index in
            print(index)
        }
    }

Latest podspec

{
    "name": "BSCycleThroughView",
    "version": "1.0.0",
    "summary": "cycle play images, commonly used in scroll ads, etc..",
    "description": "cycle play images, commonly used in scroll ads, etc. cool",
    "homepage": "https://github.com/blurryssky/BSCycleThroughView",
    "license": "MIT",
    "authors": {
        "blurryssky": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/blurryssky/BSCycleThroughView.git",
        "tag": "1.0.0"
    },
    "source_files": [
        "BSCycleThroughView",
        "BSCycleThroughViewSample/BSCycleThroughView/*"
    ],
    "exclude_files": "Classes/Exclude",
    "dependencies": {
        "Kingfisher": [
            "3.10.3"
        ]
    },
    "pushed_with_swift_version": "3.1"
}

Pin It on Pinterest

Share This