简体   繁体   English

如何使用Xcode或Swift从iOS连接到USB设备

[英]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.

相关问题 如何将iOS设备连接到自定义USB设备? - How to connect an iOS device to a custom USB device? iOS + Xcode + Swift 4.2从iOS设备向APN发送消息 - iOS + Xcode + Swift 4.2 Send messages to APNs from an iOS Device 如何在不使用USB线将设备连接到Macbook的情况下,将Apple设备(iPad或iPhone)无线连接到Xcode? - How to wirelessly connect Apple devices (iPad or iPhone) to Xcode without connecting the device to the Macbook using USB cable? 如何在 iOS Swift 中第二次连接到 BLE 设备 - How to connect to a BLE device the second time in iOS Swift 如何使用套接字编程将iOS Swift应用程序连接到硬件设备? - How to connect an iOS Swift application to a hardware device using socket programming? 如何快速(IOS 8)连接和发送/接收数据到蓝牙设备(OBDII)? - How to connect and send/receive data to bluetooth device (OBDII) in swift (IOS 8)? 是否可以将XCode的iOS设备远程连接到Mac? - Is it possible to remotely connect iOS device to mac for XCode? 如何从 iOS (Swift) 连接到 MongoDB - How to connect to MongoDB from iOS (Swift) 通过USB连接的iOS设备进行屏幕广播/镜像 - Screencasting/Mirroring from a USB connected iOS device Swift:Xcode 7.3.1 将 iOS 应用程序安装到没有 Xcode 的设备中 - Swift: Xcode 7.3.1 install an iOS app into a device without Xcode
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM