Quote:
Originally Posted by BrianSlick
You aren't explaining your situation very well.
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.
Code:
if(self.cameraViewController == nil)
{
CollageCameraViewController *camView = [[CollageCameraViewController alloc] init];//WithNibName:nil bundle:[NSBundle mainBundle]];
self.cameraViewController = camView;
[camView release];
}
[self.navigationController pushViewController:self.cameraViewController animated:NO];
The following code is called from CollageCameraViewController (second) after the user has taken his fotos:
Code:
if(self.renderView == nil)
{
CollageRenderViewController *renderViewController = [[CollageRenderViewController alloc] initWithNibName:nil bundle:[NSBundle mainBundle]];
self.renderView = renderViewController;
[renderViewController release];
}
[self.navigationController pushViewController:self.renderView animated:YES];
The following code is called from CollageRenderViewController (third) when the user decides to go back to main (root) view:
Code:
[self.navigationController popToRootViewControllerAnimated:YES];
Now, if I try to push CollageCameraViewController (second), with the code above, again I end up in CollageRenderViewController instead, why is that?