Анимировать UISlider плавно

я хочу анимировать UISlider, например, От 0,25 до 0,75 и обратно. Это должно показать пользователю, что делать.

я попробовал это:

[self incrementCounter:[NSNumber numberWithInt:0]];


-(void) incrementCounter:(NSNumber *)i {
    [Slider setValue:[i floatValue]/1000];
    [self performSelector:@selector(incrementCounter:) withObject:[NSNumber numberWithInt:i.intValue+1] afterDelay:0.001];
}

но это не так гладко ... я могу использовать переходы для этого?

[Slider setValue:1 animated:YES];

это быстро ...

[UIView animateWithDuration:2.0
                 animations:^{
                     [Slider setValue:0.2];
                 }];
[UIView animateWithDuration:2.0
                 animations:^{
                     [Slider setValue:0.5];
                 }];

Просто оживляет второй ...

Ответы на вопрос(2)

Ваш ответ на вопрос