FYI: I have an app which uses a TabBarController with 5 tabs.....The code below is in AppDelegate, DidFinishLaunching......I want to have different views open according to weather they filled out their user details.......the if else statement is working properly, and the code below does seem to work. However, I would like to modify it so the nag screen is not a new view...It should open one of the existing views, but when code for the different view is inserted, it gives me the syntax error before controller...see code below if you can help. I appreciate it.


- (void)displayMyApp:(UIApplication *)application {
[window addSubview:rootController.view];
********lots of code here*********
}


- (void)displayNagScreen:(UIApplication *)application {
[window addSubview:nagScreenController.view];

**** get an error if nagscreenController is changed to an existing controller in myapp******
}

- (void)applicationDidFinishLaunching:(UIApplication *)application {

NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSString *name1 = [defaults objectForKey:@"****"];

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

[window makeKeyAndVisible];
}


In the following example, if an existing view is inserted in the place of nagScreenController, the syntax error comes. How do I use an existing View?
Thank you.