We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
topMost 方法 最后一个判断 子控制器没有导航控制器 ,而子控制器又没有加入到父控制器的addChild方法 就导致获取不到导航控制器
for subview in viewController?.view?.subviews ?? [] { if let childViewController = subview.next as? UIViewController { //以下可能返回nil return self.topMost(of: childViewController) } }
The text was updated successfully, but these errors were encountered:
遇到同样的问题,有解决方案吗?
Sorry, something went wrong.
我也遇到了,我自己修改了这个topMost方法就好了
No branches or pull requests
topMost 方法 最后一个判断 子控制器没有导航控制器 ,而子控制器又没有加入到父控制器的addChild方法 就导致获取不到导航控制器
for subview in viewController?.view?.subviews ?? [] {
if let childViewController = subview.next as? UIViewController {
//以下可能返回nil
return self.topMost(of: childViewController)
}
}
The text was updated successfully, but these errors were encountered: