You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
}
The text was updated successfully, but these errors were encountered:
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)
}
The text was updated successfully, but these errors were encountered: