将调用弹出更改为消息popup swift

时间:2017-04-11 11:21:24

标签: ios swift xcode

我有这段代码:

// 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") }

}

这是做什么的:

它从用户获取电话号码并点按即可拨打电话。

弹出窗口如下所示: enter image description here

是否可以将其从通话更改为发送消息?

是否有可以执行此操作的功能?

0 个答案:

没有答案