Friday, 27 September 2013

UISlider not animating in iOS7

UISlider not animating in iOS7

When I switched from iOS 6 to iOS 7 design, I noticed that using the
method setValue:animated: no longer animates the sliding process. Has
anyone else came across this problem and found a solution?
I'll just add some code to show I've done nothing complicated:
//Variable declaration
IBOutlet UISlider *s; //Connected in the .xib
//Button pressed
- (IBAction)buttonPressed:(id)sender
{
[s setValue:1 animated:YES];
}
And it jumps straight to 1 after I press the button.

No comments:

Post a Comment