应用程序启动后,我正在使用UIAlertView
弹出窗口。它工作正常,但我只希望弹出窗口出现在应用程序的第一次启动时。目前我已经UIAlertView
在AppDelegate
课堂上,在applicationDidFinishLaunching
方法中。这是我的代码:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
sleep(4);
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Welcome!" message:@"SAMPLE!!!" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alert show];
[alert release];
我是应用程序开发的新手,如果这很简单,我很抱歉。