Latest 1.0.2
Homepage https://github.com/zsmzhu/MinCarouseView
License MIT
Platforms ios 8.0, requires ARC
Frameworks Foundation, UIKit
Authors

a custom picture carouse view


Installation

CocoaPods

pod ‘MinCarouseView’

How to use

Storyboard or xib setup

1.use storyboard or xib setup
2.set the imageArray property, you can use UIImage or String of url

let imageArray = [
UIImage(named: "bamboo")!,
UIImage(named: "plum blossom")!,
UIImage(named: "lotus")!
 ]
 carouse.imageArray = imageArray  

Manual setup

let urlArray = [
"http://d.lanrentuku.com/down/png/1307/jiqiren-wall-e/jiqiren-wall-e-04.png",
"http://d.lanrentuku.com/down/png/1307/jiqiren-wall-e/jiqiren-wall-e-05.png",
"http://d.lanrentuku.com/down/png/1307/jiqiren-wall-e/jiqiren-wall-e-03.png"
]
let carouse = MinCarouseView(frame: aFrame, imageArray: urlArray)
self.view.addSubview(carouse)

Note

  1. imageArray: just accept UIImage or String of URL
  2. isAutoScroll: default is true, and the carouse will autoscroll
  3. scrollInterVal: default is 3.0 seconds, the interval of scroll
  4. currentPageDotColor: set the pageControl current dot color. Support storyboard attributes inspector
  5. otherPageDotColor: set the pageControl other dots color. Support storyboard attributes inspector
  6. tapClosure: callback when tap the imageView

    carouse.tapClosure = { index in
        // do something
    }

Here you go

Latest podspec

{
    "name": "MinCarouseView",
    "version": "1.0.2",
    "summary": "A image carouse View with swift.",
    "description": "swiftu7248u672cuff0cu56feu7247u8f6eu64adu5668, u53efu4ee5u7f13u5b58u7f51u7edcu56feu7247u3001u652fu6301u81eau52a8u6edau52a8, u9700u8981iOS8.0u4ee5u4e0au7248u672c",
    "homepage": "https://github.com/zsmzhu/MinCarouseView",
    "license": "MIT",
    "authors": {
        "zsm": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/zsmzhu/MinCarouseView.git",
        "tag": "1.0.2"
    },
    "source_files": "MinCarouseView/**/*.{swift}",
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This