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 11-23-2009, 05:26 PM   #7 (permalink)
cphilc
Registered Member
 
Join Date: Nov 2009
Posts: 4
cphilc is on a distinguished road
Default

Quote:
Originally Posted by jsd View Post
You almost certainly don't have a self.navigationController property. In your code, add the line as shown below:

Code:
NSString *nibName = @"FirstViewDetails";
UIViewController *targetViewController = [[FirstViewDetailsController alloc] initWithNibName:nibName bundle:[NSBundle mainBundle]];

// add this here:
NSLog(@"my nav controller is: %@", self.navigationController);
[self.navigationController pushViewController:targetViewController animated:YES];
Run it. I bet it will print null. You need to instantiate the nav controller somewhere. Are you doing everything in code or using nib files?
In finally found the issue and fixed it.
In fact, I centralized tabbar & navigation controllers in AppDelegate.
Because I did make a link betweed the NavigationController of FirstView and this AppDelegate, it didn't work.

I'd like to thank you for your time and help.

Next time, I will do more things by code, NIB files and Interface Builder are a little bit tricky ... even, when you are used, it's quite powerful.

Phil
cphilc is offline   Reply With Quote
 

» Advertisements
» Online Users: 917
20 members and 897 guests
ADY, baja_yu, bennyholmek, Cnmcc, dansparrow, dante2003, Hamad, jerrywenwu, Kieren Harrold, kln, MarkC, mobifan, Pauluz85, pipposanta, rajeshkumar.y, Rikco, Sami Gh, stanny, TimothLinch, wserver
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,368
Threads: 93,995
Posts: 402,445
Top Poster: BrianSlick (7,978)
Welcome to our newest member, TimothLinch
Powered by vBadvanced CMPS v3.1.0

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