Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何设置 UISlider 滑动范围?如果UISlider'range是[0,100],如何设置UISlider在range[10,90]之间滑动?
非常感谢~
试试这个 :
_slider.minimumValue = minValue; _slider.maximumValue = maxValue; _slider.value = yourValue;
假设您的滑块名为“滑块”
你会这样做:
slider.minimumValue = 10; slider.maximumValue = 90;