开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜