Nag View Syntax Error

Discussion in 'iOS Programming' started by jjgraz, Apr 13, 2009.

  1. macrumors regular


    Feb 13, 2009
    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.

Share This Page