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

手动修改容器的ViewControllers会导致返回按钮有时不起作用,或者返回后导航栏不对 #157

Open
yinsenlee opened this issue Nov 26, 2021 · 0 comments

Comments

@yinsenlee
Copy link

NSMutableArray *childViewController = [NSMutableArray arrayWithArray:self.navigationController.childViewControllers];
if (childViewController.count >= 2) {
[childViewController removeObjectAtIndex:childViewController.count - 2];
[self.navigationController setViewControllers:childViewController animated:NO];
}

例如:
A->push B
B->push C
在C页面手动删除页面B,返回时页面A导航栏显示的是B的导航栏内容

当前库版本:1.9.3

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

1 participant