iOS UIView transition not smooth?
I used the following code to show animation during transition:
CATransition *animation = [CATransition animation];
[animation setDuration:0.4];
[animation set开发者_如何学运维Type:kCATransitionPush];
[animation setSubtype:kCATransitionFromTop];
[animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
[[newPage.view layer] addAnimation:animation forKey:@"SwitchToView1"];
But the transition seems to be not smooth like the other apps I saw. Does anyone know why it's not smooth? Thanks!
精彩评论