I am doing a nag screen which is implemented upon DidFinishLaunching.... the nagscreen view is getting an error..see code below.......The actual view I want to bring up is in a tabBarController...........Not sure if that is relevant..Feel like I'm not calling the view up properly....any help would be greatly appreciated. thank you.
// 2 Methods nag view//
- (void)displayNagScreen
UIApplication *)application {
[window addSubview:historyViewController.view];
*****ERROR HERE****READS****Syntax error before historyviewcontroller*****
}
- (void)displayMyApp
UIApplication *)application {
[window addSubview:rootController.view];
}
- (void)applicationDidFinishLaunching
UIApplication *)application {
//nag view code
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSString *number1 = [defaults objectForKey
"*******"];
NSString *name1 = [[NSUserDefaults standardUserDefaults] stringForKey
"*******"];
if (number1 == nil) {
[self displayNagScreen:application];
}
else {
[self displayMyApp:application];
}
[window makeKeyAndVisible];
}
Thank you.
// 2 Methods nag view//
- (void)displayNagScreen
[window addSubview:historyViewController.view];
*****ERROR HERE****READS****Syntax error before historyviewcontroller*****
}
- (void)displayMyApp
[window addSubview:rootController.view];
}
- (void)applicationDidFinishLaunching
//nag view code
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSString *number1 = [defaults objectForKey
NSString *name1 = [[NSUserDefaults standardUserDefaults] stringForKey
if (number1 == nil) {
[self displayNagScreen:application];
}
else {
[self displayMyApp:application];
}
[window makeKeyAndVisible];
}
Thank you.