Latest 1.0.0
Homepage https://github.com/broccolii/AdsPlayView
License MIT
Platforms ios 8.0, requires ARC
Dependencies Kingfisher
Frameworks Foundation, CoreGraphics, UIKit
Authors

AdsPlayView

一个基于 UICollecionView 实现的轮播图控件

Features

Requirements

  • iOS 8.0+
  • Xcode 7.0 or above

CocoaPods

use_frameworks!
pod 'AdsPlayView', '~> 1.0.0'

Usage

init


let playView = AdsPlayView(frame: rect, placeholderImage: UIImage(named: "placeholder")!, URLArr: [url1, url2, url3, url4])
view.addSubview(playView)

Callbacks

你可以自定义选择回调的方式:

block

 // block
 playView.didSelectItemAtIndexBlock = {
    (index) -> Void in
    debugPrint(index.row)
 }

delegate

extension ViewController: AdsPlayViewDelegate {
    func adsPlayView(AdsPlayView: UIView, didSelectItemAtIndexPath indexPath: NSIndexPath) {
        debugPrint("indexPath: (indexPath)")
    }
}

Contact

我的邮箱: [email protected]

License

the MIT license.

Latest podspec

{
    "name": "AdsPlayView",
    "version": "1.0.0",
    "summary": "A Ads play view used on iOS.",
    "description": "It is a Ads play view used on iOS, which implement by Swift.",
    "homepage": "https://github.com/broccolii/AdsPlayView",
    "license": "MIT",
    "authors": {
        "WuJingpeng": "[email protected]"
    },
    "source": {
        "git": "https://github.com/broccolii/AdsPlayView.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "AdsPlayView/*",
    "frameworks": [
        "Foundation",
        "CoreGraphics",
        "UIKit"
    ],
    "dependencies": {
        "Kingfisher": [
            "~> 1.8"
        ]
    }
}

Pin It on Pinterest

Share This