通过 wifi 传输数据,无需数据库
我想了解如何通过 Wi-Fi 在 2 部 iPhone 之间轻松传输数据。我想知道我是否可以在没有服务器或数据库的情况下但在应用程序内(因此不使用电子邮件)来做到这一点。
I want to get to know how I can transfer data easily between 2 iPhones, over wifi. I would like to know if I could do that without having a server or database, but within an app (so without using email).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
游戏套件支持 点对点连接,尽管名称如此,但它不仅可用于游戏:
Game Kit has support for Peer-to-Peer-Connectivity and is, despite the name, not only usable for games:
您还可以查看 Apple 的 Bonjour API。我不确定你是否需要静态 IP 才能工作,或者它只能通过 wifi 工作。只是想给一个指点。
根据您的具体用例,它可以很好地工作。
看看这里,游戏中心也在那里。
http://developer.apple.com/technologies/ios/networking.html
You can also check out Bonjour API from Apple. I am not sure if you need a static IP for it to work or it can just work over wifi. Just trying to give a pointer.
Based on your exact usecase, it can work well.
Check it out here, Game center is also there.
http://developer.apple.com/technologies/ios/networking.html