I have a UISlider
with minimumValue 0
and maximumValue
. I want to make an interval
of 0.5
and display it in a label
(it's working).
How can I set the interval of my slider
? I tried solution to round the value... but I failed.
Thank you
float RoundValue(UISlider * slider) {
return roundf(slider.value * 2.0) * 0.5;
}