modalViewController present when app opens

Posted by Sam Jarman on Stack Overflow See other posts from Stack Overflow or by Sam Jarman
Published on 2010-05-18T07:01:05Z Indexed on 2010/05/18 7:10 UTC
Read the original article Hit count: 360

Filed under:
|

Hey im trying to display a modal view controller as soon as my tab bar controller app opens.

There is something wrong with the code below, and im 99% sure its the code for this. what do i put for the thing im calling it on?

[self presentModalViewController:promt animated:YES];

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    

// Override point for customization after app launch.


//Displays the password prompt modally 

PasswordPromViewController *promt = [[PasswordPromViewController alloc] initWithNibName:@"PasswordPromViewController" bundle:nil];
promt.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentModalViewController:promt animated:YES];
[promt release];






return YES;
}

any ideas would be helful! Cheers

© Stack Overflow or respective owner

Related posts about modal-dialog

Related posts about iphone-sdk