iOS应用程序与硬件集成 [英] iOS app with hardware integration
问题描述
我想开发一个使用外部硬件插件的iOS应用程序,有点像Square https://squareup.com 。但是我无法在Apple的文档中找到任何引用。有人能指出我正确的方向吗?
I want to develop an iOS app that uses an external hardware plug-in, kind of like Square https://squareup.com. However I was unable to find any references in Apple's documentation. Can someone point me to the right direction?
推荐答案
如果您想使用iPod连接器连接硬件,那么选项是外部附件框架。请注意,您必须是注册附属开发人员(比标准开发人员许可证更贵)。
If you want to use the iPod connector to connect to your hardware, the only option is the External Accessory framework. Be advised that you must be a registered accessory developer (more expensive than the standard developer license).
我相信Square使用音频输入(其他人可能会纠正我),巧妙的黑客,不需要使用iPod连接器。如果您的硬件可以通过(模拟)音频输入/输出操作,那么可能需要考虑这一点。
I believe Square uses the audio input (others may correct me), an ingenious hack that doesn't require use of the iPod connector. If your hardware can operate over (analog) audio in/out, that might be an option to consider.
这篇关于iOS应用程序与硬件集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!