CATransition *animation=[CATransition animation];
animation.delegate=self;
animation.duration=0.3;
animation.type = kCATransitionPush;
animation.subtype = kCATransitionFromLeft;
[self.navigationController.view.layer addAnimation:animation forKey:@"animation"];
[self.navigationController pushViewController:_doubanActivity animated:NO];
animation.delegate=self;
animation.duration=0.3;
animation.type = kCATransitionPush;
animation.subtype = kCATransitionFromLeft;
[self.navigationController.view.layer addAnimation:animation forKey:@"animation"];
[self.navigationController pushViewController:_doubanActivity animated:NO];
使用CATransition实现页面过渡效果
本文详细介绍了如何使用CATransition在iOS应用中实现页面过渡动画,包括设置动画属性、添加动画到视图层以及触发页面跳转的过程。
2623

被折叠的 条评论
为什么被折叠?



