如何向所有“其他”按钮添加操作?
这就是我显示警报的方式:
- (IBAction)testCalAdd:(id)sender {
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"Select week"
message:@"Which week will you be attending?"
delegate:self
cancelButtonTitle:@"Cancel"
otherButtonTitles:@"AIG Thermal $1 Million Grand Prix", @"DC VII", @"DC VI", @"DC V", @"DC IV", @"DC III", @"DC II", @"DC I", nil];
[alert show];
}