-(void) alertView: (UIAlertView *) alertVw clickedButtonAtIndex:(NSInteger)buttonIndex
{
NSString *str = [NSString stringWithFormat:@"%d 。", buttonIndex];
UIAlertView *newAlertVw = [[UIAlertView alloc] initWithTitle:@"INFO" message:str delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[newAlertVw show];
}
UIAlertView *alertVw = [[UIAlertView alloc] initWithTitle:@"TITLE"
message:@"box message"
delegate:self
cancelButtonTitle:@"hide"
otherButtonTitles:@"T1", @"T2", nil];
[alertVw show];
ユーザーが otherButtons の 1 つに触れた場合、はい、そのユーザーがどのボタンに触れたかがわかります。では、ユーザーがタッチしたばかりのボタンのタイトルを取得するにはどうすればよいですか? ありがとう。