Adding Storyboard in your project

So I have worked with Xcode’s Storyboard for awhile now, most of the work are done with a design template that have Storyboard already in.

Just the other night, I tried creating a Single View Application and try to implement a push via segue on it and was thrown with the following:


Terminating app due to uncaught exception ‘NSGenericException’, reason: ‘Push segues can only be used when the source controller is managed by an instance of UINavigationController.’

Bear in mind that with the various option available on Storyboard, modal will work fine but not push.

For push to work, you will need a UINavigationController. In doing so you can just drag a UINavigationController onto the Storyboard and make sure that you set it as the start of the application.

NavigationController with Start