根视图条转

来源:互联网 发布:高洛峰php在线视频教程 编辑:程序博客网 时间:2024/06/06 04:09

//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];

0 0
原创粉丝点击