I need to call to a "*105" number, but when I tried to call, nothing's going on. Also alertController not showing.. How can I call to a phone number with * or # signs?
Here is my code:
var url = NSURL(string: "tel://*105")
if UIApplication.shared.canOpenURL(url! as URL)
{
UIApplication.shared.openURL(url! as URL)
}
else
{
let alert = UIAlertController(title: "Error", message: "You can't to call.", preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "Ok", style: .cancel, handler: nil))
self.present(alert, animated: true, completion: nil)
}