林顯示兩個警報視圖陸續陸續有以下之前:如何添加延遲呈現第二個提醒查看
-IBAction
UIAlertView* alert = [[UIAlertView alloc] initWithTitle:@"Alert" message:@"my message" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alert setDelegate:self];
[alert show];
}
- (void)didPresentAlertView:(UIAlertView *)alertView
{
[alertView setTitle:@"My new title"];
[alertView setMessage:@"My new message"];
}
從第一警報視圖到第二的過渡是用戶很快就沒有時間閱讀第一條消息。有人可能會建議如何在警報之間添加延遲。我認爲我需要實現一個NSTimer,但是實現這個是我可以使用一些建議的地方。
時使用的警報視圖**駁回被稱爲UIAlertViewDelegate協議方法* * – 2012-07-14 13:54:13