I'm trying to slow down the animation of the UISlider when changing values.
So far, I've tried the old UIView animation method:
[UIView beginAnimations:@"slider" context:nil];
[UIView setAnimationDuration:5.0];
[self.slider setValue:2 animated:YES];
[UIView commitAnimations];
And the new blocks based method:
[UIView animateWithDuration:5.0
animations:^{
[self.slider setValue:2 animated:YES];
}];
I've tried with and without the animated:YES
value set. In all cases, the slider simply animates at the default speed.
Is there another tactic I should be looking at to customize the speed of the animation?
Should I subclass the slider and override anything there?