![](/img/trans.png)
[英]UINavigationController - how to change animation for single UIViewController
[英]Show UINavigationController with UIViewController animation
YOURVC *vc = [[YOURVC alloc]init];
UINavigationController *VCNavigation = [[UINavigationController alloc]initWithRootViewController:vc];
当您从1到3或任何电话通话时
[self.navigationController pushViewController:vc animated:YES];
或从2到1也可以这样打电话,相反,您可以打电话
[self.navigationController popViewControllerAnimated:YES];
或根视图控制器使用
[self.navigationController popToRootViewControllerAnimated:YES];
或特定的vc
[self.navigationController popToViewController:yourvc Animated:YES];
然后,如果要显示导航,请保留它,或者如果要隐藏,可以将其隐藏。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.