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];
上一篇 下一篇

猜你喜欢

热点阅读