我有这段代码:
// Get phone number and make a call on tap
if heyObj[HEYS_PHONE] != nil {
if "\(heyObj[HEYS_PHONE])" != "" {
let aURL = URL(string: "telprompt://\(heyObj[HEYS_PHONE]!)")!
if UIApplication.shared.canOpenURL(aURL as URL) {
UIApplication.shared.openURL(aURL)
} else { simpleAlert(mess: "Sorry, Your device cannot make phone calls!") }
} else { simpleAlert(mess: "This user has not provided a phone number") }
} else { simpleAlert(mess: "This user has not provided a phone number") }
}
这是做什么的:
它从用户获取电话号码并点按即可拨打电话。
是否可以将其从通话更改为发送消息?
是否有可以执行此操作的功能?