iOS 开发push转场动画

2017-04-21  本文已影响0人  红叶潇潇

//push专场动画

CATransition *animation = [CATransition animation];

[animation setDuration:0.3];

[animation setType: kCATransitionMoveIn];

[animation setSubtype: kCATransitionFromTop];

[animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];

[self.navigationController.layer addAnimation:animation forKey:kCATransition];

[self.navigationController pushViewController:one animated:NO];

上一篇 下一篇

猜你喜欢

热点阅读