El controlador de navegación crea 2 vistas en lugar de 1

I explain the situation : I've got a NavigationController + TableViewController and when I click on a cell, I've done a performSegueWithIdentifier to go to another View. I've done this through storyboard.

[self performSegueWithIdentifier:@"goToCamera" sender:self];

In this view, I need to push a view which contain the camera overlay.

[self.navigationController pushViewController:viewController animated:NO];

This works fine but my problem is that the navigation controller seems to create 2 views and when I want to go back to the TableViewController, I need to click 2 times, the first time the button's name is "Volver" and the second time the button's name is "miTableView"

I noticed that when I set the attribut animated to 'YES', I got this error message :

nested push animation can result in corrupted navigation bar

This problem seems to appear when there are 2 segue push in the same time but it isn't in my case.

preguntado el 05 de mayo de 13 a las 17:05

1 Respuestas


[self.navigationController pushViewController:viewController animated:NO];

is indeed like performing a push segue, with the only difference that you are directly manipulating the stack of the navigation controller! What is your expected behavior?

I think what you want to do is directly performing the segue to the view controller with the camera overlay, am i wrong?

contestado el 10 de mayo de 13 a las 17:05

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.