Tag: Scrollslider

迅速滚动滑块

UIScrollView的自定义滚动滑块。 安装 CocoaPods: 吊舱“ SwiftlyScrollSlider” 手册: 只需将SwiftlyScrollSlider.swift复制到您的项目中即可。 使用 使用真的很简单。 请为故事板或XIB中的滚动滑块创建例如UITextView和UIView ,并为此UIView设置一个SwiftlyScrollSlider类。 并且UITextView的委托应该是SwiftlyScrollSlider 。 就这样。 定制示例: scrollSlider.thumbImageView?.image = UIImage(named:“ ScrollSliderCustom.png”)//更改滚动滑块的图像 scrollSlider.lineBackgroundView?.backgroundColor = UIColor.yellowColor()//线条的颜色 scrollSlider.lineBackgroundView?.layer.borderColor = UIColor.yellowColor()。CGColor //线条颜色的渐变 您可以在此存储库中轻松找到示例。