Presetting uislider values

Is there a way to set the UISlider values ​​for something like:

100, 121, 10000, 40505, 100000, 460322, 1000024, 5005230, etc.

The numbers have no pattern. When the user moves the slider, I would like to display the above numbers corresponding to where the user is on the slider. The slider displays numbers with a specific step as floating point numbers. What is the best way to translate these values ​​into the above ... or should I be using a different control?

+1


a source to share


1 answer


There's nothing built in there, but it doesn't seem like it's hard to get something to work. Just define min 0 and max X, where X is the number of different values ​​you want. Then when you need to get the value, just set the radio button(int)value



0


a source







All Articles