Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 10-26-2009, 02:10 AM   #5 (permalink)
drisse
Registered Member
 
Join Date: Sep 2009
Posts: 7
drisse is on a distinguished road
Default

Quote:
Originally Posted by BrianSlick View Post
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?
drisse is offline   Reply With Quote
 

» Advertisements
» Online Users: 504
15 members and 489 guests
.Snipe, Apptronics RBC, brajpal, daunmi, dhun, Duncan C, HemiMG, HowEver, ilmman, LEARN2MAKE, Libera, mediaspree, newprogrammer, tommiss12
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,318
Threads: 93,987
Posts: 402,404
Top Poster: BrianSlick (7,978)
Welcome to our newest member, Libera
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:23 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.