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];
私はアプリ開発に慣れていないので、これが単純な場合は申し訳ありません。