如何在Swift5中从Appdelegate或Scenedelegate呈现视图控制器?
我尝试过这个,但没有成功:
self.window = UIWindow(frame: UIScreen.main.bounds)
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let initialViewController = storyboard.instantiateViewController(withIdentifier: "profile")
self.window?.rootViewController = initialViewController
self.window?.makeKeyAndVisible()