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

当有present的动作之后,push会有几率导致宕机,卡住,进入后台再回到前台,push中会有黑屏 #36

Open
realWayneZhang opened this issue Oct 8, 2019 · 0 comments

Comments

@realWayneZhang
Copy link

realWayneZhang commented Oct 8, 2019

当有present的动作之后,push会有几率导致宕机,卡住,进入后台再回到前台,push中会有黑屏

iOS 12,iOS 13
导航栏设置:
interactivePopGestureRecognizer?.delegate = nil
navigationBar.barTintColor = UIColor.bg
navigationBar.tintColor = UIColor.f
navigationBar.titleTextAttributes =
[NSAttributedString.Key.font: UIFont.m17 ?? UIFont.systemFont(ofSize: 17, weight: UIFont.Weight.medium),
NSAttributedString.Key.foregroundColor: UIColor.f]
let navigaiotnBar = UINavigationBar.appearance()
let backImg = UIImage(named: "navigationbar_back_withtext_1")
navigaiotnBar.backIndicatorImage = backImg
navigaiotnBar.backIndicatorTransitionMaskImage = backImg

有几率:

  1. 当前ViewController的导航栏透明
  2. 当前ViewController present 一个ViewController
  3. dismiss之后回到透明导航栏的ViewController
  4. 再push,会卡住(好像在进行复杂的递归计算,导致UI卡住)
  5. 让app 进入后台,再返回前台,在当前透明导航栏的ViewController中push会有竖着的黑色区域出现
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