CodeTips / CycleScrollView

For Swift 4.0 循环滚动ScrollView

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CycleScrollView

    func numberOfPages(in cycleScrollView: CycleScrollView) -> Int {
        return viewData.count
    }
    
    func cycleScrollView(_ cycleScrollView: CycleScrollView, viewForPageAt index: Int) -> UIView {
        return viewData[index]
    }
    
    func cycleScrollView(_ cycleScrollView: CycleScrollView, didSelectPageAt index: Int) {
        print(index)
    }

About

For Swift 4.0 循环滚动ScrollView

License:MIT License


Languages

Language:Swift 96.5%Language:Objective-C 3.5%