可以延迟CATransition的动画吗?我试过startProgress
,但它没有任何区别。
这就是我进行转换的方式:
CATransition *animation = [CATransition animation];
[animation setType:kCATransitionPush];
[animation setSubtype:kCATransitionFromLeft];
[animation setDuration:0.25];
[animation setTimingFunction:[CAMediaTimingFunction functionWithName:
kCAMediaTimingFunctionEaseInEaseOut]];
[animation setRemovedOnCompletion:YES];
[self.tabBarController.view.layer addAnimation:animation forKey:@"pushAnimation"];