-(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];
如果用户触摸了其他按钮之一,是的,我们知道用户触摸了哪个按钮。那么,如何获取用户刚刚触摸的按钮的标题?谢谢。