Latest 2.0.2
Homepage https://github.com/itanchao/TCRunloopView
License MIT
Platforms ios 8.0
Dependencies SDWebImage
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

TCRunloopView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "TCRunloopView"

API


    ///  Called after the user Clicked the Cell.
    ///
    /// - Parameters:
    ///   - loopView: loopView
    ///   - index: current index
    func runLoopViewDidClick(_ loopView:TCRunLoopView, didSelectRowAtIndex index: NSInteger)

    /// Called when any currentIndex changes
    ///
    /// - Parameters:
    ///   - loopView: loopView
    ///   - index: new current index
    func runLoopViewDidScroll(_ loopView: TCRunLoopView, didScrollRowAtIndex index: NSInteger)

How to Build a LoopView & SetUp

        let runloopView = TCRunLoopView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 400))
        runloopView.delegate = self
        view.addSubview(runloopView)
        let urlArray = ["http://ww1.sinaimg.cn/mw1024/473df571jw1f2aq06o3ltj20qo0ur79o.jpg","http://ww3.sinaimg.cn/mw1024/473df571jw1f24p6b71lhj20m80m841x.jpg","http://ww2.sinaimg.cn/mw1024/473df571jw1f1p8u1kf0hj20q50yvn3z.jpg","http://ww3.sinaimg.cn/mw1024/473df571jw1f17waawibmj20rs15o1kx.jpg","http://ww2.sinaimg.cn/mw1024/473df571jw1f0s5nq609zg20ku0kutbg.gif"]
        runloopView.loopDataGroup = urlArray.map{(url) in LoopData(image:url,des:url)}

View

TCRunloopView

Author

itanchao, [email protected]

License

TCRunloopView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "TCRunloopView",
    "version": "2.0.2",
    "summary": "u56feu7247u8f6eu64adu5668",
    "homepage": "https://github.com/itanchao/TCRunloopView",
    "license": "MIT",
    "authors": {
        "u8c08u8d85": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/itanchao/TCRunloopView.git",
        "tag": "2.0.2"
    },
    "source_files": [
        "Sauces",
        "Sauces/*.{swift}"
    ],
    "dependencies": {
        "SDWebImage": [
            "~> 4.0.0"
        ]
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This