因为经常用,但是还老忘
所以就记一下😂
自定义view里利用到UITabBarController控制器 modal 出来的导航控制器push
UIViewController *root = [UIApplication sharedApplication].keyWindow.rootViewController;
UINavigationController *nav = (UINavigationController *)root.presentedViewController;
[nav pushViewController:<#(nonnull UIViewController *)#> animated:YES];
网友评论