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?

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top