切换普通ViewController和RootViewController时动画尴尬?

CATransition *animate = [CATransition animation];

animate.type = kCATransitionPush;

animate.subtype = kCATransitionFromRight;

animate.duration = 1.0;

[[UIApplication sharedApplication].keyWindow.layer addAnimation:animate forKey:nil];

你可能感兴趣的:(切换普通ViewController和RootViewController时动画尴尬?)