搜索
您的当前位置:首页正文

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

来源:二三娱乐
TestViewController *test = [[TestViewController alloc] init];
    UIViewController *root = [UIApplication sharedApplication].keyWindow.rootViewController;
    UINavigationController *nav = (UINavigationController *)root.presentedViewController;
    [nav pushViewController:test animated:YES];
Top