ios - How can I make a slider move in steps of 0.25? -
i have slider have min of 0 , max of 8. move between 0 , 8 in steps of 0.25. ex. 0 - 0.25 - 0.5 - 0.75 etc.
can please me? appreciated.
https://developer.apple.com/library/ios/documentation/uikit/reference/uislider_class/#//apple_ref/occ/instm/uislider/setvalue:animated: supports float well...
float roundedvalue = roundf(value / 0.2f) * 0.2f; (use round....)
see here similar problem increment uislider 0.2 in range 0 2.0
Comments
Post a Comment