[英]How to connect to USB device from iOS with Xcode or swift
I'm trying to connect USB camera to iOS in Xcode using Swift or Objective C. 我正在尝试使用Swift或Objective C将USB相机连接到Xcode中的iOS。
I saw online to try and use IOKit.framework, but I believe it's for MAC, which I'm not using. 我在网上看到了尝试使用IOKit.framework的信息,但我相信它是针对MAC的,我没有使用过。 dos NSSstring converters but I'm unsure that will work either. dos NSSstring转换器,但我不确定是否可以使用。 I'm trying to do it through iOS. 我正在尝试通过iOS做到这一点。
I also have a WIFI adapter that will connect to my NIKON DSLR and shoot photos to a PC over wifi but not sure how to get the iOS device to connect and download these images. 我也有一个WIFI适配器,它将连接到我的NIKON DSLR并通过wifi将照片拍摄到PC上,但是不确定如何使iOS设备连接并下载这些图像。
Thanks in advance! 提前致谢!
Looks like this isn't possible, at least for what you want. 看来这是不可能的,至少对于您想要的。
Communicating with an external accessory requires you to work closely with the accessory manufacturer to understand the services provided by that accessory. 与外部附件进行通信需要您与附件制造商紧密合作,以了解该附件提供的服务。 Manufacturers must build explicit support into their accessory hardware for communicating with iOS. 制造商必须在其附件硬件中内置显式支持才能与iOS通信。 As part of this support, an accessory must support at least one command protocol 作为此支持的一部分,附件必须至少支持一个命令协议
These USB devices obviously have not been designed with iOS in mind, so there is a very small chance you can get it to work the apple way. 这些USB设备显然不是为iOS设计的,因此极有可能让它以Apple方式工作。
Alternatively, you can look into jailbreaking and that sorta deal with the cameraconnectionkit library. 或者,您可以调查越狱问题,并使用cameraconnectionkit库进行处理。 This is way out of my scope though, so good luck! 不过,这超出了我的范围,祝您好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.