I'm making an UISlider and I don't find how to change the selectable values, I would like the only values possible be 10 by 10. The slider begins at 82 and ends at 362. I want the possible value to be 82,92,102,.....
I've tried different things but I don't find
[sliderannonce setValue: [sliderannonce value]+10.0 animated:YES];
or
sliderannonce.value=10;
I've my action here:
- (IBAction)changeSliderAnnonce:(id)sender{
labelSliderAnnonce.text = [[NSString alloc] initWithFormat:@"annonce:%d",(int)sliderannonce.value];
}
If you did something like that or you know how to do please let me know.