OC UINavigationController push pop自定义动画
Posted 新年新气象934060369
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了OC UINavigationController push pop自定义动画相关的知识,希望对你有一定的参考价值。
SystemAnimationViewController *system = [SystemAnimationViewController new]; CATransition *animation = [CATransition animation]; animation.duration = 0.5; // animation.subtype = UIViewAnimationCurveEaseInOut; animation.type =self.dataArr[indexPath.row]; animation.subtype = kCATransitionFromRight; [self.view.window.layer addAnimation:animation forKey:nil]; //注意以下方法必须animated设置NO,而且返回的动画还是默 [self.navigationController pushViewController:system animated:NO];
-(NSArray *)dataArr{ if(!_dataArr){ _dataArr = [NSArray arrayWithObjects:@"fade",@"push",@"reveal",@"moveIn",@"cube",@"suckEffect",@"oglFlip",@"rippleEffect",@"pageCurl",@"cameraIrisHollowOpen",@"cameraIrisHollowClose", nil]; } return _dataArr; }
以上是关于OC UINavigationController push pop自定义动画的主要内容,如果未能解决你的问题,请参考以下文章
ios UINavigationController 导航栏
swift 关于FDFullscreenPopGesture的右滑返回
关闭 UINavigationController 并呈现另一个 UINavigationController
iOS:如何在现有 UINavigationController 中打开另一个 UINavigationController?
带有主 UINavigationController 和详细 UINavigationController 的 UISplitViewcontroller
带有 UINavigationController 的 UITabBarController,在 hidesBottomBarWhenPushed 上隐藏 UINavigationController