ios 拿到modal出的导航控制器进行push
2017-04-06 本文已影响63人
风都
TestViewController *test = [[TestViewController alloc] init];
UIViewController *root = [UIApplication sharedApplication].keyWindow.rootViewController;
UINavigationController *nav = (UINavigationController *)root.presentedViewController;
[nav pushViewController:test animated:YES];