想要将 iPhone 上的数据传输到 PC 上的程序
我有一个可以读取条形码的 iPhone 应用程序。我想将该数据传输到我在 PC 上编写的程序。这可能吗?
I have an iPhone app that reads barcodes. I want to transfer that data to a program I have written on my PC. Is this possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
最简单的方法是拥有一个网络服务器,应用程序将条形码传输到该服务器,计算机上的应用程序从中获取条形码。您可能可以让每个用户创建一个在手机和计算机上登录的帐户。
编辑:本文档:http:// developer.apple.com/library/ios/#technotes/tn2152/_index.html 描述了在 iPhone 和计算机之间传输数据的各种方法。
The easiest way to do this is to have a web server which the app transfers the barcode to and the application on the computer grabs it from. You could probably have each user make an account which they log in to on both the phone and the computer.
EDIT: This document: http://developer.apple.com/library/ios/#technotes/tn2152/_index.html describes various methods for transferring data between an iphone and a computer.
这只是一个建议,我自己还没有尝试过:您可以使用Apple为iOS引入的iTunes文件共享功能。这似乎是一个关于如何在应用程序中使用它的很好的教程 http://www.raywenderlich.com/1948/how-integrate-itunes-file-sharing-with-your-ios-app
唯一的是它需要用户导入/出口通过 iTunes 自行共享文件,如果您对此感到满意,那么使用 iOS 的内置功能听起来是一个不错的策略。
This is just a suggestion, haven't tried it myself: You can use the iTunes filesharing feature Apple introduced for iOS. This seems to be a good tutorial on how to use it in your App http://www.raywenderlich.com/1948/how-integrate-itunes-file-sharing-with-your-ios-app
The only thing is that it requires the user to import/export the files to share on their own via iTunes, if you're cool with that it sounds like a good strategy to use built-in features of iOS.