UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"" message:@"确定删除我嘛?" preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *okAction = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action){
}];
UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action){
}];
[alertController addAction:okAction];
[alertController addAction: cancelAction];
[self presentViewController:alertController animated:YES completion:nil];
网友评论