Reputation: 419
I have a tableview with about 10 items.
I have set up a UIView Controller as a detail page.
I Control-Drag from my cell in the tableview to the new view controller, and I can create a Push Segue, however the navigation control does not appear on the new view controller.
When I run the application my prepareForSegue method executes but my application does nothing. The detail UIView Controller does not display.
What step am I missing to make this work?
Upvotes: 2
Views: 1864
Reputation: 171
The Push segue only makes sense for ViewControllers embedded inside a UINavigationController. You can do this easily by selecting your tableview's ViewController in the storyboard and choosing in the main menu:
Editor -> Embed In -> Navigation Controller
Upvotes: 3