ios - 'openParentApplication(_:reply:)' has been explicitly marked unavailable here - Xcode 7 Beta -
after updating xcode 7 beta, receive following error message: "'openparentapplication(_:reply:)' has been explicitly marked unavailable here", when running line of code "wkinterfacecontroller.openparentapplication"
here actual code:
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) } } }
+[wkinterfacecontroller openparentapplication:] relevant watchkit1 app extensions because watchkit1 app extensions, appex running on phone instead of on watch.
with watchkit2 app extensions, appex running on watch, actions such less trivial accomplish. want use -[wcsession sendmessagedata:replyhandler:errorhandler:] watchconnectivity.framework you're doing.
Comments
Post a Comment