- (IBAction)backAction:(id)sender {
//初始化
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@”是否注销?” message:@”真的要注销吗” preferredStyle:UIAlertControllerStyleActionSheet];
//添加按钮
[alert addAction:[UIAlertAction actionWithTitle:@”取消” style:UIAlertActionStyleCancel handler:nil]];
[alert addAction:[UIAlertAction actionWithTitle:@”确定” style:UIAlertActionStyleDestructive handler:^(UIAlertAction *action) {
//向nav左弹出一个视图
[self.navigationController popViewControllerAnimated:YES];
}]];
//弹出
[self presentViewController:alert animated:YES completion:NULL];
}
07-13
07-13
07-13
07-13
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交