如何通过重复和自动反向来减慢animation
我正在使用UIView animateWithDuration。 我用UIView beginAnimation,但是苹果说从iOS4.0开始使用新的方法会更好。
我有一个问题,但。 我不能减慢我想要的animation。
[UIView animateWithDuration:25.0f delay:0.0f options:(UIViewAnimationOptionRepeat | UIViewAnimationOptionAutoreverse) animations:^ {self.frame = CGRectMake(self.frame.origin.x, self.frame.origin.y, self.frame.size.width*0.97f, self.frame.size.height*0.97f);} completion:nil];
我可以将animateWithDuration的值更改为我想要的值,并始终执行相同的animation!
谢谢您的帮助