开发者

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!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜