两个iOS设备之间的通信 [英] Communication between two iOS devices
问题描述
我正在寻找一种方法让一个iPhone应用程序向另一个手机上的另一个应用程序发送消息(有点像Sender-Receiver设置)。我正在寻找最好的方法来做到这一点。有没有人有任何想法和/或教程?
I am looking for a way to have one iPhone app send a message to another app on a different phone (sort of like a Sender-Receiver set up). I am looking for the best possible way to do this. Does anyone have any ideas and/or tutorials?
感谢您的帮助。
推荐答案
你应该使用GameKit。在使用它的两个iOS设备之间发送消息非常容易。这是一个很棒的教程: Game Kit 。您还可以从文档中获取有关它的更多信息:关于Game Kit 。
You should use GameKit. It is super easy to send messages between two iOS devices using it. Here's a great tutorial: Game Kit. You can also get more information about it here from the docs: About Game Kit.
您可以通过创建ad-hoc蓝牙或本地无线网络进行通信。
You communicate by creating an ad-hoc bluetooth or local wireless network.
这篇关于两个iOS设备之间的通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!