EFNavigationBar icon indicating copy to clipboard operation
EFNavigationBar copied to clipboard

在SceneDelegate.swift中做rootViewController操作后,返回按钮的响应无法返回

Open XWXGitHub opened this issue 5 years ago • 0 comments

class func currentViewController() -> UIViewController {
    if let rootVC = UIApplication.shared.delegate?.window??.rootViewController {
        return self.currentViewController(from: rootVC)
    } else {
        return UIViewController()
    }
}

在控制台打印了下结果如下

if let rootVC = UIApplication.shared.delegate?.window??.rootViewController
p  rootVC
(UIViewController?) $R0 = nil

XWXGitHub avatar Apr 14 '20 11:04 XWXGitHub