NSString *allString = [NSStringstringWithFormat:@"tel:1008611"];
UIAlertController *alertController=[UIAlertControlleralertControllerWithTitle:@"拨打电话"message: allString preferredStyle:(UIAlertControllerStyleAlert)];
UIAlertAction *actionQued=[UIAlertActionactionWithTitle:@"确认拨打"style:UIAlertActionStyleDefaulthandler:^(UIAlertAction * action) {
[[UIApplicationsharedApplication] openURL:[NSURLURLWithString:allString]];
}];
UIAlertAction *actionCancal=[UIAlertActionactionWithTitle:@"取消"style:UIAlertActionStyleCancelhandler:^(UIAlertAction * action) {
}];
[alertControlleraddAction:actionQued];
[alertControlleraddAction:actionCancal];
[selfpresentViewController:alertController animated:YEScompletion:nil];