Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jjgraz

macrumors regular
Original poster
Feb 13, 2009
103
0
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:mad:"*******"];

NSString *name1 = [[NSUserDefaults standardUserDefaults] stringForKey:mad:"*******"];

if (number1 == nil) {
[self displayNagScreen:application];
}
else {
[self displayMyApp:application];
}

[window makeKeyAndVisible];

}



Thank you.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.