//a modal 出 b
[ a presentViewController:b animated:Yes completion:nil];
a.presentedViewController ->b
b.presentingViewController ->a
-------------------------------------------------------------
要跳转的控制器VC[New]个;
UIViewController *root = [UIApplication sharedApplication].keyWindow.rootViewController;
UINavigationController *nav = [UINavigationController alloc] initWithRootViewController:要跳转的控制器];
[root presentViewController:nav animated:YES completion:nil];
本文介绍了iOS开发中视图控制器间的跳转方法,通过使用presentViewController进行模态视图展示,并提供了具体实现代码示例。
2120

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



