Like rmaddy said in the comments you are trying to push a navigation controller.
Navigation controllers should be presented (via presentViewController or they can be added as a childViewController) and ViewControllers should be pushed.
More Related Contents:
- How to check if a view controller is presented modally or pushed on a navigation stack?
- What is the difference between Modal and Push segue in Storyboards?
- Real time blur effect for Navigation Bar
- Dismissing both UINavigation views and Modal views at once programmatically
- Programmatically get height of navigation bar
- Add objective c code to swift file [closed]
- UITextField text change event
- How to hide UINavigationBar 1px bottom line
- Can’t use Swift classes inside Objective-C
- Bold & Non-Bold Text In A Single UILabel?
- Save string to the NSUserDefaults?
- Storyboard doesn’t contain a view controller with identifier
- When to use @objc in Swift?
- How to use UIView autoresizingMask property programmatically?
- why UITableViewAutomaticDimension not working?
- Drop-Down List in UITableView in iOS
- NSURLSession: How to increase time out for URL requests?
- iOS difference between isKindOfClass and isMemberOfClass
- How can I change the font of the back button for my navigation bar?
- Best way to parse URL string to get values for keys?
- Swift 3.1 deprecates initialize(). How can I achieve the same thing?
- UILabel with text of two different colors
- iOS 7 Status Bar Collides With NavigationBar
- Format UILabel with bullet points?
- Get current iPhone device timezone date and time from UTC-5 timezone date and time iPhone app?
- Loading a ViewController inside a Container View
- Alternate Icon in iOS 10.3
- Accessing variables from another ViewController in Swift
- Duplicate Symbol Error in NSManagedObject Subclass
- Spritekit – not loading @3x images from SKTextureAtlas