Send messages between iOS and WatchOS with WatchConnectivity in watchOS2
问题 I watched the WWDC2015 and saw that you can develop native apps on the watch now. This opened up a lot of capabilities and I am wondering how I could send data between my iOS app and my AppleWatch app. I saw that there is a new framework called WatchConnectivity. How can I use this and what are my options when sending data back and forth? 回答1: WatchConnectivity First the two classes that are supposed to communicate with each other (iOS and watchOS) need to conform the <WCSessionDelegate> and