i want this. have uislider
minimum value shuld 0 , maximum value should 1000.and want divide range 10 parts. this.
0-----100----200----300----400
when user drag slider 0 should directly stop @ 100 position without stopping inbetween 0 , 100 when drag 100 should directly jump 200 should not stop inbetween 100 , 200 likewise.how can this? please me.
thanks
you have this:
slider.maximumvalue = numberofsteps;
slider.minimumvalue = 0;
slider.continuous = no;
for setting
nsuinteger index = (nsuinteger)(slider_value + 0.5);
[slider setvalue:index animated:no];
Comments
Post a Comment