在更新到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)
}
}
}