-(void)aleartViewShowtTittle:(NSString *)tittle message:(NSString *)message ok:(NSString *)ok other:(NSString *)other cancel:(NSString *)cancel{
UIAlertController *altc =[UIAlertController alertControllerWithTitle:tittle message:message preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:cancel style:UIAlertActionStyleCancel handler:nil];
UIAlertAction *okAction = [UIAlertAction actionWithTitle:ok style:UIAlertActionStyleDefault handler:nil];
UIAlertAction *othe = [UIAlertAction actionWithTitle:other style:UIAlertActionStyleDefault handler:nil];
// UIAlertAction *othe = [UIAlertAction actionWithTitle:other style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {
// SendServiceViewController *ssvc = [[self storyboard] instantiateViewControllerWithIdentifier:@"SendServiceView"];
// [self showViewController:ssvc sender:nil];
[self show]
//
//
// }];
[altc addAction:cancelAction];
[altc addAction:okAction];
[altc addAction:othe];
[self presentViewController:altc animated:YES completion:nil];
}
UIAlertController *altc =[UIAlertController alertControllerWithTitle:tittle message:message preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:cancel style:UIAlertActionStyleCancel handler:nil];
UIAlertAction *okAction = [UIAlertAction actionWithTitle:ok style:UIAlertActionStyleDefault handler:nil];
UIAlertAction *othe = [UIAlertAction actionWithTitle:other style:UIAlertActionStyleDefault handler:nil];
// UIAlertAction *othe = [UIAlertAction actionWithTitle:other style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {
// SendServiceViewController *ssvc = [[self storyboard] instantiateViewControllerWithIdentifier:@"SendServiceView"];
// [self showViewController:ssvc sender:nil];
[self show]
//
//
// }];
[altc addAction:cancelAction];
[altc addAction:okAction];
[altc addAction:othe];
[self presentViewController:altc animated:YES completion:nil];
}