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

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -