Reputation: 395
I have a normal ViewController which i have added a button to make a push segue to a table view controller. I have a tab bar in my application and i need to keep it in all views. But when i make the segue while running the app i get the following error.
SGenericException Reason: Could not find a navigation controller for segue 'View'. Push segues can only be used when the source controller is managed by an instance of UINavigationController.
I have searched and found that i have to embed in navigation controller and i did. But i still get that error. Thank you.
Upvotes: 0
Views: 463
Reputation: 395
Solved. Jassi you were right. I had just to add in the first view controller a navigationController. And that was just what i did. I embed in my firstviewcontroller a navigationcontroller and just did the push segue. I didn't embed a navigation controller in the view that has the tableview. Thank you for your replies.
Upvotes: 1
Reputation: 89
Not really enough information to go on, have you tried popover instead of push? You need a navigationController to 'push' a view
Upvotes: 0