UIAlertController * alert = [UIAlertController alertControllerWithTitle:@"删除确认" message:nil preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction * decideaction = [UIAlertAction actionWithTitle:@"删除" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
//此处写点击事件
}];
UIAlertAction * cancelaction = [UIAlertAction actionWithTitle:@"放弃" style:UIAlertActionStyleDefault handler:nil];
[alert addAction:decideaction];
[alert addAction:cancelaction];