user1247395
user1247395

Reputation: 419

push segue not showing my detail page

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

Answers (1)

azethoth
azethoth

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

Related Questions