//删除未支付的订单
-(void)delOrder:(UIButton*)btn{
self.operationIndex=btn.tag;
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"删除订单" message:@"是否要删除该订单?" delegate:self cancelButtonTitle:@"取消" otherButtonTitles:@"确定", nil];
alert.tag = 90009;
[alert show];
}
//点击事件
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
if (alertView.tag == 90009) {
if (buttonIndex == 1) {
//TODO:
}
}
}
转载于:https://my.oschina.net/jack088/blog/512225