开发者

How set the default value for my slider? [duplicate]

开发者 https://www.devze.com 2023-03-07 07:26 出处:网络
This question already has answers here: 开发者_JS百科 Closed 11 years ago. Possible Duplicate: UISlider how to set the initial value
This question already has answers here: 开发者_JS百科 Closed 11 years ago.

Possible Duplicate:

UISlider how to set the initial value

I want to set the default value for my slider and start the thumb of the slider from that value only. Any suggestions???

Thanks,


You can set the lowest potential value via the minimumValue method, the highest via the maximumValue method and the current value via the value method, all of which expect the value to be expressed as a float between 0.0 and 1.0.

See the UISlider class reference docs for more information.

0

精彩评论

暂无评论...
验证码 换一张
取 消