我从iOS 6切换到iOS 7设计时,发现使用方法setValue:animated:
不再使滑动过程产生动画效果。有人遇到过这个问题并找到解决方案吗?
我只是添加了一些代码来展示我没有做过复杂的操作:
//Variable declaration
IBOutlet UISlider *s; //Connected in the .xib
//Button pressed
- (IBAction)buttonPressed:(id)sender
{
[s setValue:1 animated:YES];
}
我按下按钮后,它直接跳到1。