It's been a very long time since I've done anything in objective-c so please forgive me if I am a bit off. My understanding is that openURL was deprecated in iOS 12.0 (I think). You could try something like this to see if it works for you. This if from a function where the number is passed in as a string.
if let phoneCallURL = URL(string: "tel://2112345#") {
let application:UIApplication = UIApplication.shared
if (application.canOpenURL(phoneCallURL)) {
application.open(phoneCallURL, options: [:], completionHandler: nil)
}
}
}
Good luck!
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: