I'm creating a popoverSegue from a new view controller and want to push a third view controller onto the original stack. This is how I'm creating the application:
- Create a new
Single View Application
- Select
Use Storyboards
- Select the
MainStoryboard.storyboard
file. - Select the only View Controller, change the
Title
andIdentifier
toinitialView
, then selectEditor->Embed In->Navigation Controller
- Drag two new
View Controller
objects from the Objects Library onto the canvas - Change the
Title
andIdentifier
of the new View Controllers to:popoverView
andnewView
. - Add a
Round Rect Button
object from the Object Library toinitialView
andpopoverView
. - Add a
Label
object from the Object Library to `newView. - Control click the button in the
initialView
and drag topopoverView
. - Select the
Popover
option from theStoryboard Segues
menu that appears. - Control click the button in the
popoverView
and drag to thenewView
. - Select the
Push
option fromt theStoryboard Segues
menu. - Build & Run.
Click the first button, and the popover appears, but when you click the button within the popover, nothing happens (it should push the new view but doesn't.)
What I want to do is for it to push onto the Navigation Controller
stack, but am not sure how to setup the storyboard for that.
Any ideas?