-
Notifications
You must be signed in to change notification settings - Fork 156
Open
Description
How can I navigate from AppDelegate to a ViewController keeping the NavigationBar? I tried the following with no luck.
Firstly I instanciated the target ViewController:
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let vc = storyboard.instantiateViewController(withIdentifier: "VC") as? ActionViewController
let ky = self.window?.rootViewController as! KYDrawerController
if let k = ky.mainViewController as? UINavigationController
{
k.pushViewController(vc!, animated: true)
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels