从iOS App到Mac App的文件传输? [英] File transfer from iOS App to Mac App?

查看:213
本文介绍了从iOS App到Mac App的文件传输?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在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的文件传输?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆