(一) 对一名tab巴view目控制器的首层控制器有这种估计
- (void)viewDidAppear:(BOOL)animated
{
[UIView animateWithDuration:4.0 delay:0.0 options:UIViewAnimationOptionRepeat | UIViewAnimationOptionCurveLinear animations:^{
CGAffineTransform transform = CGAffineTransformMakeRotation(M_PI);
self.rotatingImage.transform = transform;
} completion:NULL];
}
它很出色地运作,但当从禁忌中改变视力控制器并返回到第一个观察控制器时,就停止了。
https://stackoverflow.com/questions/8489638/ios-uiview-animation-issue”