処理が実行されているか、この時変数には何が入っているか。
そんな簡単なチェック用のアラートの表示の仕方。
UIAlertView* alert = [[[UIAlertView alloc] initWithTitle:@"動作確認" message:@"メソッド実行" delegate:nil cancelButtonTitle:nil otherButtonTitles:@"OK", nil] autorelease]; [alert show]; [alert release];
initWithTitleがタイトル、messageが本文。
内容を変えれば、そのままユーザーへの通知としても使用可能。