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];
Run Code Online (Sandbox Code Playgroud)
我是应用程序开发的新手,很抱歉,如果这很简单的话.