I have a problem involving the UINavigationController.
I have a application that have three view controllers that I'm switching between using the navigation controllers push and pop functionality.
The problem is this: I stand in the third view controller and makes a call to
[self.navigationController popToRootViewControllerAnimated:YES];
this brings me to the first view controller (which is exactly what I want) but when I then try to navigate to the second view controller I end up in the third for some reason.
Is there any way you can reset the navigation controller, or am I doing this the wrong way?
...but when I then try to navigate to the second view controller I end up in the third for some reason.
Is there any way you can reset the navigation controller, or am I doing this the wrong way?...
I can't tell if you are doing the wrong way because you haven't posted the code that you use to determine which view controller to go to. That is probably where the error is. Post the code that does the push.
I can't tell if you are doing the wrong way because you haven't posted the code that you use to determine which view controller to go to. That is probably where the error is. Post the code that does the push.
Robert Scott
Ypsilanti, Michigan
This code is called each time the "camera" button in the rootVieController is pusched:
Is camera the 2nd or 3rd view controller?
Are you pushing the camera controller, but not actually seeing the camera controller?
Does the root view controller have the ability to push directly to the 3rd controller?
Is camera the 2nd or 3rd view controller?
Are you pushing the camera controller, but not actually seeing the camera controller?
Does the root view controller have the ability to push directly to the 3rd controller?
The following code is called in the root view controller when the user decides to launch the camera.