UIAlertController *alertVC = [UIAlertController alertControllerWithTitle:@"提示" message:@"确定要送出嗎?" preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction * cancelAc = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {
//點選取消要執行的代碼
}];
UIAlertAction *comfirmAc = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
//點選确定要執行的代碼
}];
[alertVC addAction:cancelAc];
[alertVC addAction:comfirmAc];
[self presentViewController:alertVC animated:YES completion:nil];