I have been working on the application for a while, and it pushes the view controller from AppDelegate. When the navigation bar that was previously pressed disappears. This is now a static navigation bar (not part of the navigation controller), but it was previously and still didn't work. What am I doing wrong? Is there any workaround?
This is the code in AppDelegate that I use to push it:
var storyboard = UIStoryboard(name: "Main", bundle: nil) var PostView: AnyObject! = storyboard.instantiateViewControllerWithIdentifier("NewView") var rootViewController = self.window!.rootViewController as! UINavigationController rootViewController.pushViewController(PostView as! UIViewController, animated: true)
pushViewController is the one I'm trying to click.
ios swift uinavigationcontroller
Isaac wasserman
source share