【发布时间】:2015-08-29 12:50:25
【问题描述】:
更新到 Xcode 7 beta 后,我在运行代码行“WKInterfaceController.openParentApplication”时收到以下错误消息:“'openParentApplication(_:reply:)' 已在此处显式标记为不可用”
这是我的实际代码:
func getData(messageText: String) {
let infoDictionary = ["message" : messageText]
WKInterfaceController.openParentApplication(infoDictionary) {
(replyDictionary, error) -> Void in
if let castedResponseDictionary = replyDictionary as? [String: String],
responseMessage = castedResponseDictionary["message"]
{
print(responseMessage)
}
}
}
【问题讨论】:
标签: ios xcode swift watchkit beta