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

使用2.0.6的版本在IOS12.0或IOS12.1上时,当APP被退出有大约4个小时后,再次打开时,可能会出现跳转页面失败。但重启APP就好了。不知道为什么? #114

Open
nameIsYong opened this issue Nov 6, 2018 · 6 comments

Comments

@nameIsYong
Copy link

No description provided.

@nameIsYong
Copy link
Author

let navigator:Navigator = AppDelegate.appNavigator() navigator.push(url)
这里push有时候返回 nil
public func push(_ url: URLConvertible, context: Any? = nil, from: UINavigationControllerType? = nil, animated: Bool = true) -> UIViewController? { return self.pushURL(url, context: context, from: from, animated: animated) }

@cdoky
Copy link

cdoky commented Nov 7, 2018

你这个问题我就没遇到过
你检查一下URL是否匹配到了,或者是提供一个demo

@nameIsYong
Copy link
Author

你这个问题我就没遇到过
你检查一下URL是否匹配到了,或者是提供一个demo

好的,谢谢,我再琢磨一下。

@kivenZheng
Copy link

请问可以在TabBarController里使用吗?

@nameIsYong
Copy link
Author

请问可以在TabBarController里使用吗?

可以的。

@fooval-shen
Copy link

我也遇到这个问题, 后面发现了 bug在这个代码里面

guard let currentWindows = self.sharedApplication?.windows else { return nil }
var rootViewController: UIViewController?
for window in currentWindows {
if let windowRootViewController = window.rootViewController {
rootViewController = windowRootViewController
break
}
}

比如在其他window 也有rootViewController的时候, 并且这个时候这个windows 不是key window, 这个时候获取到rootViewControoler 就不是当前 可见的 rootviewController

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

4 participants