UIAlertController *alvc = [UIAlertController alertControllerWithTitle:@"title" message:nil preferredStyle:(UIAlertControllerStyleAlert)];
? ? ? ? UIAlertAction*confirmAction = [UIAlertActionactionWithTitle:@"設(shè)置"style:UIAlertActionStyleDefaulthandler:^(UIAlertAction*_Nonnullaction) {
? ? ? ? }];
? ? ? ? [alvcaddAction:confirmAction];
? ? ? ? UIAlertAction*cancelAction = [UIAlertActionactionWithTitle:@"取消"style:(UIAlertActionStyleDestructive)handler:^(UIAlertAction*_Nonnullaction) {
? ? ? ? }];
? ? ? ? [alvcaddAction:cancelAction];
? ? ? ? UIViewController *tempVc = [[UIViewController alloc] init];
? ? ? ? [selfaddSubview:tempVc.view];
? ? ? ? [tempVcpresentViewController:alvc animated:YES completion:^{
? ? ? ? ? ? [tempVc.viewremoveFromSuperview];
? ? ? ? }];