//Eable call function
@IBAction func onClickCallBtn(_ sender: Any) {
guard let url = URL(string: "tel://self.mobile") else {
return //be safe
}
if #available(iOS 10.0, *) {
UIApplication.shared.open(url)
} else {
UIApplication.shared.openURL(url)
}
}
No comments:
Post a Comment