Hey,
Just have a quick question, I have a new app made with "Navigation Based Application", but i would like to put a new View in the beginning when it starts!
So it launches, First screen - View - then press a button and it goes to - The Nav Screen - or back again..
Now its my understanding you can change the way the App launches with the
Am i right or wrong? But everything i try seems to still launch the App with the Nav screen not the View i made.. This is the code i have in the App... Any help?
Thanks!
Just have a quick question, I have a new app made with "Navigation Based Application", but i would like to put a new View in the beginning when it starts!
So it launches, First screen - View - then press a button and it goes to - The Nav Screen - or back again..
Now its my understanding you can change the way the App launches with the
Code:
- (void)applicationDidFinishLaunching:(UIApplication *)application {
Am i right or wrong? But everything i try seems to still launch the App with the Nav screen not the View i made.. This is the code i have in the App... Any help?
Code:
#import "TestAppDelegate.h"
#import "TestViewController.h"
#import "RootViewController.h"
@implementation TestAppDelegate
@synthesize viewController;
@synthesize window;
@synthesize navigationController;
#pragma mark -
#pragma mark Application lifecycle
- (void)applicationDidFinishLaunching:(UIApplication *)application {
[window addSubview:viewController.view];
[window makeKeyAndVisible];
// Override point for customization after app launch
[window addSubview:[navigationController view]];
[window makeKeyAndVisible];
}
- (void)applicationWillTerminate:(UIApplication *)application {
// Save data if appropriate
}
#pragma mark -
#pragma mark Memory management
- (void)dealloc {
[viewController release];
[navigationController release];
[window release];
[super dealloc];
}
@end
Thanks!