asdasdasd
asdasdasd

Reputation: 19

Embedded UINavigationController Storyboards Issue

I am trying to embed a UINavigationController using a UIViewController with storyboards.

I am trying to "push" RecordViewController to PublishViewController. This doesn't seem to be working at all. It is switching "modally."

PublishViewController => UIViewController with an embedded UINavigationController.

RecordViewController => UIViewController.

What am I doing wrong?

Storyboards Image: http://cl.ly/image/0R27072Y2X08

Switch View Segue Code:

#pragma mark - Navigation

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {

if([segue.identifier isEqualToString:@"pushToPublish"]) {

    PublishViewController *vc = [segue destinationViewController];

}
}

Upvotes: 1

Views: 181

Answers (1)

The dude
The dude

Reputation: 7924

You should have something like this: Storyboard

Record View Controller should be embedded in a navigation controller, an the segue between Record VC and Publish VC should be defined as a push segue, not a modal. Note that the pictogram for a push segue is the one between Record and Publish in the attached image.

Upvotes: 1

Related Questions