【发布时间】:2016-08-29 20:08:11
【问题描述】:
我正在为我的应用程序开发 iMessage 应用程序扩展程序,我想知道是否可以从应用程序扩展程序发起电话呼叫?
我尝试使用以下代码,但它需要我(深度链接)才能包含应用程序。
cell.didTapCallNowButton = { cell in
if let phoneNumber = cell.Model.phone,
let url = URL(string: "telprompt:\(phone)") {
self.extensionContext?.open(url, completionHandler: nil)
}
}
【问题讨论】:
标签: ios iphone ios-app-extension ios10 xcode8