在h.文件中已经写有UIAlertViewDelegate,m.文件中delegate:self的
为什么点击@"Cancel"、@"Delete"、@"Add"都是没有响应呢?小白不懂,求大神解答。。
h.文件
@interface tableViewController : UITableViewController {
NSMutableArray *a;
}
m.文件
// 创建警告视图
UIAlertView *al = [[UIAlertView alloc] initWithTitle:@"编辑" message:@"请选择条目" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Delete", @"Add", nil];
// 显示警告视图
[al show];