项目介绍:
XLsn0wSwiftLoop循环滚动视图
源代码: https://github.com/XLsn0w/XLsn0wKit_swift/tree/master/XLsn0wKit/Components/XLsn0wSwiftLoop
用法:
let xlsn0wLoop = XLsn0wSwiftLoop(frame: CGRect(x:0, y:100, width:CGFloat(kScreenWidth), height:200)) let array:NSArray = ["1.jpg", "2.jpg", "3.jpg"] xlsn0wLoop.dataArray = array xlsn0wLoop.cuttentPageColor = UIColor.red xlsn0wLoop.pageIndicatorTintColor = UIColor.blue view.addSubview(scrollVi xlsn0wLoop ew)