0

ボタンを押したときに IBAction に UIAlert を挿入したいのですが、どうすればよいですか? この UIAlert には、「完了」というメッセージと、それを閉じるためのボタンが表示される必要があります。

4

1 に答える 1

4
- (IBAction)onShowAlertView 
{
    UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"done" 
                                                        message:@"" 
                                                       delegate:nil 
                                              cancelButtonTitle:@"close" 
                                              otherButtonTitles:nil];
    [alertView show];
    [alertView release];
}
于 2011-04-07T09:51:55.160 に答える