Skip to content
New issue

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

有时候返回按钮会消失,此时还在webview页面,没有退出到原生页面,导致无法退出,这种现象偶尔会出现 #19

Open
yyh321 opened this issue Dec 22, 2016 · 2 comments

Comments

@yyh321
Copy link

yyh321 commented Dec 22, 2016

No description provided.

@Roxasora
Copy link
Owner

请问如何复现呢,在什么情况下会发生这种情况?

@yyh321
Copy link
Author

yyh321 commented Dec 22, 2016

就是原生多级跳转,肯定会出现。还有打开webview,偶尔会导航栏消失,但是偶然出现的,我是按照以下方式解决的,已经Ok
-(BOOL)navigationBar:(UINavigationBar *)navigationBar shouldPopItem:(UINavigationItem *)item{
//这一个要去掉!!!!!!
//! 如果应该pop,说明是在 popViewController 之后,应该直接 popItems
// if (self.shouldPopItemAfterPopViewController) {
// self.shouldPopItemAfterPopViewController = NO;
// return YES;
// }
//
//解决多级跳转导航栏消失问题
if([self.viewControllers count] < [navigationBar.items count]) {
return YES;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants