We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1 用的最新的版本 主控制器 MainViewController 的导航栏隐藏 。NextViewController控制器的导航栏显示,都是通过- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated 这个方法去判断导航栏是否隐藏。但是点击cw_pushViewController 这个方法到下一个控制器的时候,不会走控制导航栏影藏和显示的方法。
看了下cw_pushViewController内部的代码获取的UINavigationController应该是LeftViewController这个控制器的。我需要获取的是MainViewController 的nav. 目前的临时的解决办法是 。判作者解决下
[self dismissViewControllerAnimated:YES completion:^{ UINavigationController *nav = [UIApplication sharedApplication].visibleNavigationController; [nav pushViewController:vc animated:YES]; }];
The text was updated successfully, but these errors were encountered:
我也遇到和你一样的问题了 有什么解决办法吗
Sorry, something went wrong.
目前我临时的解决把办法就是,上面写的。dismiss 结束后,再获取当前的navigation ,然后再push.
我测试了一下,dismiss结束以后会有个跳到主页的过程,再Push你想要的界面。
No branches or pull requests
1 用的最新的版本 主控制器 MainViewController 的导航栏隐藏 。NextViewController控制器的导航栏显示,都是通过- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated 这个方法去判断导航栏是否隐藏。但是点击cw_pushViewController 这个方法到下一个控制器的时候,不会走控制导航栏影藏和显示的方法。
看了下cw_pushViewController内部的代码获取的UINavigationController应该是LeftViewController这个控制器的。我需要获取的是MainViewController 的nav.
目前的临时的解决办法是 。判作者解决下
[self dismissViewControllerAnimated:YES completion:^{
UINavigationController *nav = [UIApplication sharedApplication].visibleNavigationController;
[nav pushViewController:vc animated:YES];
}];
The text was updated successfully, but these errors were encountered: