是否可以在Mac应用和iOS应用之间传输文件?我想通过Wifi将iOS应用程序文档目录中的文件传输到我的Mac App,我该怎么办?
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?
推荐答案嗯,从iOS 5开始,有iCloud。由于这仍然在NDA之下,我只需要指向相关文档并让我们你自己读了。
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.
如果没有,我会考虑使用神话般的 Dropbox API。这确实需要您的用户注册Dropbox帐户,但随后您的Mac(或PC)与其iOS设备之间会自动进行双向同步。
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.
失败,总是 Bonjour 。正确配置 - 这并不是一件容易的事,你需要做一些CFSocket或BSD套接字工作--Bonjour会发现本地网络,Mac或iOS上的任何服务。
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.
更多推荐
从iOS App到Mac App的文件传输?
发布评论