美文网首页
iOS 开发push转场动画

iOS 开发push转场动画

作者: 红叶潇潇 | 来源:发表于2017-04-21 09:56 被阅读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];

相关文章

网友评论

      本文标题:iOS 开发push转场动画

      本文链接:https://www.haomeiwen.com/subject/stkhzttx.html