文章来源:淘论文网   发布者: 毕业设计   浏览量: 40



还可以点击去查询以下关键词:
[两个]    [slide]    [毕业]    [方便]    [选定]    [范围]    [两个球的slide毕业r, 方便选定范围]   

项目介绍:

2个球的slider, 方便选定范围

AORangeSlider

AORangeSlider is a custom UISlider with two handler to pick a minimum and maximum range.
Inspired by https://github.com/muZZkat/NMRangeSlider

Adding AORangeSlider to your project

CocoaPods
CocoaPods is the recommended way to add AORangeSlider to your project.
Add the following line to your Podfile:

pod 'AORangeSlider', '~> 1.0'Usagelet rangeSlider = AORangeSlider(frame: frame) view.addSubView(rangeSlider)

<!-- To observe value changes when using gesture
rangeSlider.addTarget(self, action: #selector(sliderValueChanged(sender:)), for: .valueChanged)
is enough, but it cannot observe changes when value being changed programmatically. Thus, valuesChangedHandler is a better way. -->
If you want to call a method only when touch ends

rangeSlider.changeValueContinuously = false; rangeSlider.addTarget(self, action: #selector(sliderValueChanged(sender:)), for: .valueChanged)

else if you want to call a method whenever the value changes, no matter by code or by touch,

rangeSlider.valuesChangedHandler = { //write your code here, and pay attention to Circular Reference. }Configuration

minimumValue : The minimum possible value of the range

maximumValue : The maximum possible value of the range

lowHandleImageNormal: The image of low thumb

highHandleImageNormal: The image of high thumb

lowValue: set low value programmatically

highValue: set high value programmatically

func setValue(low: Double, high: Double, animated: Bool) set values animated

stepValue: move animatedly to a stepValue when touch ends

stepValueContinuously: If true, the thumb will not move until it hit a new step

论文开题报告

这里还有:


还可以点击去查询:
[两个]    [slide]    [毕业]    [方便]    [选定]    [范围]    [两个球的slide毕业r, 方便选定范围]   

请扫码加微信 微信号:sj52abcd


下载地址: http://www.taolw.com/down/6516.docx
  • 上一篇:网页加载内容进度显示定制,可自定义进度条颜色,高度
  • 下一篇:一款动画效果毕业设计暴强的刷新控件