在iPhone和Mac之间进行通信 [英] Communicating between iPhone and Mac

查看:184
本文介绍了在iPhone和Mac之间进行通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算创建一个从iPhone获取数据并将其发送到Mac上的其他应用程序的应用程序。陀螺仪数据也将被发送。

I'm planning on creating an app that takes data from an iPhone and sends it to another application on the Mac. Gyroscope data will also be sent.

我认为这最好通过蓝牙连接完成。

I'm assuming that this should best be done over a bluetooth connection.

有谁能请给我一些关于我应该如何构建应用程序或者是否可能的信息?

Could anyone please give me some information as to how I should structure the apps or if it is possible?

推荐答案

我想说最理想的方法是通过Bonjour协议。

Id say the most ideal way to accomplish this is via the Bonjour protocol.

这是一篇关于这个主题的精彩文章, http://mobileorchard.com/tutorial-networking-and-bonjour-on-iphone/

Here is a great article on the subject, http://mobileorchard.com/tutorial-networking-and-bonjour-on-iphone/.

在iOS中使用Bonjour的好处是它也适用于蓝牙。

Good thing with using Bonjour in iOS is it also works via Bluetooth.

希望这会有所帮助!

这篇关于在iPhone和Mac之间进行通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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