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

滑动返回过程取消,导航栏出现三个小点 #6

Open
fengneng opened this issue Jul 14, 2020 · 0 comments
Open

滑动返回过程取消,导航栏出现三个小点 #6

fengneng opened this issue Jul 14, 2020 · 0 comments

Comments

@fengneng
Copy link
Owner

截屏2020-07-14 上午11 15 18

在iOS10 以下机型,侧滑返回过程中慢慢取消,导航栏左侧出现三个点,并且很难通过重试消除:

self.navigationController.navigationBar.topItem.title = @"";
self.navigationController.navigationBar.backItem.title = @"";

另一种方案,找到UINavigationItemButtonView 将其隐藏,

`
override func viewDidAppear(animated: Bool) {
super.viewDidAppear(animated)
guard let subviews = navigationController?.navigationBar.subviews else {return}

for view in subviews {
if view.isKindOfClass(NSClassFromString("UINavigationItemButtonView")!) {
view.hidden = true
}}}
`

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