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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-13-2009, 07:09 AM   #1 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 9
Default Call awakeFromNib from Controller / App delegate

Hello,

I have something like that :
Code:
- (void)applicationDidFinishLaunching:(UIApplication *)application {
 
tabBarController = [[UITabBarController alloc] init];        
 
tutoViewController = [[TutoViewController alloc] init];                 
UINavigationController *tableNavController = [[[UINavigationController alloc] initWithRootViewController:tutoViewController] autorelease];
[tutoViewController release];
[tableNavController setNavigationBarHidden:TRUE];
 
newsViewController = [[NewsViewController alloc] init];  
UINavigationController *table2NavController = [[[UINavigationController alloc] initWithRootViewController:newsViewController] autorelease];
[newsViewController release];
[table2NavController setNavigationBarHidden:TRUE];
 
forumViewController = [[ForumViewController alloc] init];  
UINavigationController *table3NavController = [[[UINavigationController alloc] initWithRootViewController:forumViewController] autorelease];
[forumViewController release];
[table3NavController setNavigationBarHidden:TRUE];
 
infoViewController = [[InfoViewController alloc] init];
UINavigationController *table4NavController = [[[UINavigationController alloc] initWithRootViewController:infoViewController] autorelease];
table4NavController.title = @"iPuP";
[infoViewController release];
[table4NavController setNavigationBarHidden:TRUE];
 
tabBarController.viewControllers = [NSArray arrayWithObjects:tableNavController, table2NavController, table3NavController, table4NavController, nil];
 
[window addSubview:tabBarController.view];      // adds the tab bar's view property to the window
[window makeKeyAndVisible];                     // makes the window visible
}
I want to preload views (initialized into the awakeFromNib method) into my app delegate.
Tried something like :
Code:
tutoViewController = [[TutoViewController alloc] init];  
[tutoViewController.view awakeFromNib];
UINavigationController *tableNavController = [[[UINavigationController alloc] initWithRootViewController:tutoViewController] autorelease];
[tutoViewController release];
[tableNavController setNavigationBarHidden:TRUE];
But it doesn't works. How could I make that ?

Thanks.
Slum is offline   Reply With Quote
Old 11-14-2009, 12:03 AM   #2 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 8
Default

Nobody knows ?
SlumRf is offline   Reply With Quote
Reply

Bookmarks

Tags
application, controller, delegate methods, load, view

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 249
21 members and 228 guests
@sandris, ADY, bookesp, ckgni, dacapo, Dani77, DarkAn, Davey555, Desert Diva, HemiMG, iDifferent, jakerocheleau, JasonR, LEARN2MAKE, prchn4christ, Rudy, ryantcb, Speed, themathminister, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,766
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:41 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0