File transfer from iOS App to Mac App?

£可爱£侵袭症+ 提交于 2019-11-30 16:17:07

问题


Is it possible to transfer files between a Mac app and a iOS app? I want to transfer files that are in the documents directory in my iOS App to my Mac App via Wifi, how could I do it?


回答1:


Well, as of iOS 5 onwards, there's iCloud. Since that's still under NDA, I'll just have to point to the relevant documentation and let you read up on your own.

If not, I'd consider using the fabulous Dropbox APIs. This does require your users signing up for a Dropbox account, but then you get automatic two-way syncing between their Mac (or PC) and their iOS devices.

Failing that, there's always Bonjour. Properly configured - and it's not super easy, there is a bit of CFSocket or BSD socket work that you need to do - Bonjour will discover any services on the local network, Mac or iOS.



来源:https://stackoverflow.com/questions/6922118/file-transfer-from-ios-app-to-mac-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!