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、MainController 实现了UITabBarController class MainController: UITabBarController { } 2、QMUIKit:版本号:4.7.0
3、AppDelegate类里直接跳转到MainController(使用的是UINavigationController方式跳转) window = UIWindow(frame: UIScreen.main.bounds) window!.rootViewController = UINavigationController(rootViewController: MainController()) window!.makeKeyAndVisible()
4、项目直接崩溃,出错位置:UINavigationController+QMUI.m 类 203行: if (!willPushActually) { QMUIAssert(NO, @"UINavigationController (QMUI)", @"调用了 pushViewController 但实际上没 push 成功,viewController:%@", viewController); callSuperBlock(); return; }
这个怎么解决????
The text was updated successfully, but these errors were encountered:
当 vc 为 UITabBarController 时,willPushActually 为 NO,所以命中了 assert。
UITabBarController
虽然不推荐将 UITabBarController 作为 UINavigationController 的 childViewController 来使用,但也不能说这么用就是错的,所以后续会把这个判断条件去除。目前建议先本地注释掉。
Sorry, something went wrong.
同样遇到了这个问题,将 UITabBarController 作为 UINavigationController 的 childViewController 有的场景更为灵活一些,没必要加![viewController isKindOfClass:UITabBarController.class]这个判断
No branches or pull requests
1、MainController 实现了UITabBarController
class MainController: UITabBarController { }
2、QMUIKit:版本号:4.7.0
3、AppDelegate类里直接跳转到MainController(使用的是UINavigationController方式跳转)
window = UIWindow(frame: UIScreen.main.bounds)
window!.rootViewController = UINavigationController(rootViewController: MainController())
window!.makeKeyAndVisible()
4、项目直接崩溃,出错位置:UINavigationController+QMUI.m 类 203行:
if (!willPushActually) {
QMUIAssert(NO, @"UINavigationController (QMUI)", @"调用了 pushViewController 但实际上没 push 成功,viewController:%@", viewController);
callSuperBlock();
return;
}
这个怎么解决????
The text was updated successfully, but these errors were encountered: