ios 拿到modal出的导航控制器进行push

TestViewController *test = [[TestViewController alloc] init];
    UIViewController *root = [UIApplication sharedApplication].keyWindow.rootViewController;
    UINavigationController *nav = (UINavigationController *)root.presentedViewController;
    [nav pushViewController:test animated:YES];

你可能感兴趣的:(ios 拿到modal出的导航控制器进行push)