//弹框
UIAlertController *sheetController = [UIAlertController alertControllerWithTitle:@"标题" message:nil preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *okAction = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
//选中确定之后的操作
NSLog(@" 确定 ");
}];
UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:nil];
[sheetController addAction:okAction];
[sheetController addAction:cancelAction];
[self presentViewController:sheetController animated:YES completion:^{
//完成之后的操作
}];