0
votes

This is a real beginners thing I know but I'm just looking for someone to point me in the right direction.

I'm going through the great Ray Wenderlich series about Table Views, here's the last one

http://www.raywenderlich.com/68139/video-tutorial-table-views-search

However I want to create an app that is similar to those examples but also has a TabViewController, so I created a new TabViewController in the storyboard, and then created a segue between that and the UITableViewController, and it runs fine until I tap on one of the cells in the table view to bring on the next view controller, then I get this error...

*** Terminating app due to uncaught exception 'NSGenericException', reason: 'Could not find a navigation controller for segue 'GoToEdit'. Push segues can only be used when the source controller is managed by an instance of UINavigationController.'

I don't get this error because all I've done is remove the original segue to the original view controller, and replaced it with a TabViewController and then linked them up with a new segue.

enter image description here

2
Your tab should attached to navigation controller, and navigation controller will go to table view controller. As of now, navcontroller is missing inbetween tab and table controllers. - Mrunal
I just tried a segue between the tab controller and the original uinavcontroller and then from that to the table view controller but it didn't work, all I get is a no item tab view controller displayed and a black screen above - Phil
Have you referred the link which I posted, it has the same scenario and with explanation. Topic name in that: "Adding a Table View Controller" - Mrunal
I'll check that out thanks. - Phil

2 Answers

0
votes

Click on Main.storyboard then select tabbar controller and then click Editor -> Embede In -> Navigation Controller

0
votes

You should embede in NavigationController your Pretty Icons Scene. Thats all.