ios基本控件之UISlide
2016-01-18 13:35
369 查看
UISlide属性
1. minimumValue : 当值可以改变时,滑块可以滑动到最小位置的值,默认为0.0
_slider.minimumValue = 10.0;2. maximumValue : 当值可以改变时,滑块可以滑动到最大位置的值,默认为1.0
_slider.maximumValue = 100.0;3. continuous : 如果设置YES,在拖动滑块的任何时候,滑块的值都会改变。默认设置为YES
[_slider setContinuous:NO]; // 在滑块滑动结束时才获取滑块的值4. minimumValueImage : 滑块条最小值处设置的图片,默认为nil
_slider.minimumValueImage = [UIImage imageNamed:@"003.png"];5. maximumValueImage,滑块条最大值处设置的图片,默认为nil
_slider.maximumValueImage = [UIImage imageNamed:@"002.png"];6.minimumTrackTintColor : 小于滑块当前值滑块条的颜色,默认为蓝色
_slider.minimumTrackTintColor = [UIColor redColor];7.maximumTrackTintColor: 大于滑块当前值滑块条的颜色,默认为白色
_slider.maximumTrackTintColor = [UIColor greenColor];8.thumbTintColor : 当前滑块的颜色,默认为白色
_slider.thumbTintColor = [UIColor yellowColor];9.currentMaximumTrackImage : 滑块条最大值处设置的图片
10.currentMinimumTrackImage : 滑块条最小值处设置的图片
11.currentThumbImage: 当前滑块的图片
相关文章推荐
- ios基本控件之UIScrollView
- ios基本控件之UIPickerView
- ios基本控件之UIPageControl
- ios基本控件之UILabel
- ios基本控件之UIImageView
- QUiLoader 动态加载.ui文件
- ios基本控件之UIImagePickerController
- ios基本控件之UIDatePicker
- ios基本控件之UIControl
- ios基本控件之UIButton
- ios基本控件之UIAlertView
- ios基本控件之UIActivityIndicatorView
- amazon oa2 - insert a value into a cycled linked list
- iOS9之后支付宝的回调以及iOS8之后提示框UIAlertController
- UILabel设置富文本格式显示
- 在线安装maven插件问题:Cannot complete the install because one or more required items could not be found.
- 素材收集整理
- UICollectionView瀑布流的实现,带例子
- The server quit without updating PID file (mysql.pid)一次意外mysql停止运行备忘录
- UILabel 简单的富文本