开发者

Sending data from mac to ios

开发者 https://www.devze.com 2023-03-26 12:14 出处:网络
I wrote a simple cocoa application that u开发者_高级运维pdates some stuff. Now I would like to send this updated data to any ios device. What\'s the best way for me to do that? Is diving into low leve

I wrote a simple cocoa application that u开发者_高级运维pdates some stuff. Now I would like to send this updated data to any ios device. What's the best way for me to do that? Is diving into low level stuff such as socket and NSStream and such my only option?


NSStream is generally the way to go, with device discovery through NSNetService/NSNetServiceBrowser (Bonjour). But a library like MYNetwork might be better suited if you’ve never dealt with NSStream before. I’d suggest you try out something like MYNetwork to see if it does what you want before diving into NSStream/Bonjour.

0

精彩评论

暂无评论...
验证码 换一张
取 消