this is my code to make a phone call
let phoneCall = phoneNumberTF.text
if let phoneCall = phoneCall {
let url = NSURL(string: "tel://\(phoneCall)")
UIApplication.sharedApplication().openURL(url!)
}else {
let alert = UIAlertController(title: "Error", message: "not correct phone", preferredStyle: .Alert)
let action = UIAlertAction(title: "Retry", style: .Default, handler: nil)
alert.addAction(action)
}
I'm getting this error in the log
ERROR: There is no registered handler for URL scheme tel
hint: I already check this question, but the solution didn't work with me Calling a phone number in swift