How set the default value for my slider? [duplicate]
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.
精彩评论