Pet*_*Pik 2 uislider ios swift
我在视图中添加了一个UISlider.我想知道是否可以移除旋钮或只是快速更改图像?我怎样才能做到这一点?
滑块旋钮称为拇指图像,您可以使用setThumbImage:forState:方法更改它
mySlider.setThumbImage(nil, forState: UIControlState.Normal) // Remove the knob image by setting it to nil, or add your own image.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2286 次 |
| 最近记录: |