cocoaTouch/MainMenuViewController.m
changeset 3364 e5403e2bf02c
parent 3356 3ae3fccb439e
child 3374 0d522416d97f
equal deleted inserted replaced
3363:bcd6d76db4f7 3364:e5403e2bf02c
    63                                           initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
    63                                           initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
    64     indicator.center = CGPointMake(alert.bounds.size.width / 2, alert.bounds.size.height - 50);
    64     indicator.center = CGPointMake(alert.bounds.size.width / 2, alert.bounds.size.height - 50);
    65     [indicator startAnimating];
    65     [indicator startAnimating];
    66     [alert addSubview:indicator];
    66     [alert addSubview:indicator];
    67     [indicator release];
    67     [indicator release];
    68     [alert release];
       
    69     
    68     
    70     // create a team
    69     // create a team
    71     createTeamNamed(@"Default Team");
    70     createTeamNamed(@"Default Team");
    72     
    71     
    73     // create settings.plist
    72     // create settings.plist
    82     [saveDict writeToFile:SETTINGS_FILE() atomically:YES];
    81     [saveDict writeToFile:SETTINGS_FILE() atomically:YES];
    83     [saveDict release];    
    82     [saveDict release];    
    84     
    83     
    85     // ok let the user take control
    84     // ok let the user take control
    86     [alert dismissWithClickedButtonIndex:0 animated:YES];
    85     [alert dismissWithClickedButtonIndex:0 animated:YES];
       
    86     [alert release];
    87 
    87 
    88 	[pool release];
    88 	[pool release];
    89 	[NSThread exit];
    89 	[NSThread exit];
    90 }
    90 }
    91 
    91