Latest 0.0.4
Homepage https://github.com/JC2018424/JCLoopPlayView
License MIT
Platforms ios 9.0, requires ARC
Dependencies Kingfisher
Frameworks UIKit
Authors

一行代码解决:无限轮播(暂只支持本地图片,后续支持url路径与自定义视图等…)

支持pod

pod ‘JCLoopPlayView’

头文件

import JCLoopPlayView

Example,初始化视图大小,图片名称或url路径

let loopView = JCLoopPlayView(frame: CGRect(x: 0, y: 20, width: view.bounds.width, height: 300), imageStrs: ["", ""])
view.addSubview(loopView)

设置代理(JCLoopPlayDelegate)

loopView.delegate = self

代理方法

当前轮播的下标

func currentIndex(_ index: Int) { }

选中图片的下标

func selectedIndex(_ index: Int) { }

实例演示

image

Latest podspec

{
    "name": "JCLoopPlayView",
    "version": "0.0.4",
    "summary": "u7b80u5355u5b9eu7528u7684u65e0u9650u8f6eu64aduff08u6682u53eau652fu6301u672cu5730u56feu7247uff09",
    "homepage": "https://github.com/JC2018424/JCLoopPlayView",
    "license": "MIT",
    "authors": {
        "JC": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/JC2018424/JCLoopPlayView.git",
        "tag": "0.0.4"
    },
    "source_files": "JCLoopPlayView/*.swift",
    "requires_arc": true,
    "frameworks": "UIKit",
    "dependencies": {
        "Kingfisher": [
            "~> 4.7.0"
        ]
    },
    "swift_version": "4.0"
}

Pin It on Pinterest

Share This