1
嘿即時嘗試顯示模式視圖控制器,只要我的標籤欄控制器應用程序打開。modalViewController當應用程序打開時顯示
下面的代碼有問題,而且99%肯定它的代碼。我爲什麼要把它叫做什麼?
[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;
}
任何想法都會很有幫助! 乾杯