MonoTouch的条形扫描仪?

时间:2011-09-27 05:52:49

标签: iphone ios mono xamarin.ios barcode-scanner

我一直在研究制作iOS应用程序,该应用程序使用相机拍摄条形码(例如代码39)并正确阅读。

只是看了几个图书馆,不确定我是否有任何工作,但他们都在使用Objective-c for iOS。

想想也许我应该问一下MonoTouch中是否有解决方案,因为我想为iOS制作应用程序?

4 个答案:

答案 0 :(得分:3)

在MonoTouch邮件列表上运行了类似的thread

RedLaser latest(比mono的git存储库更新)绑定可在以下位置获得:https://github.com/chrisbranson/monotouch-bindings 示例代码位于:https://github.com/chrisbranson/RedLaserSample

另一个建议是使用:https://github.com/GoranHalvarsson/BarcodeReader-MonoTouch

其他人使用(商业)LineaPro SDK(github上也提供了一些MonoTouch绑定)。

答案 1 :(得分:2)

这是Redth的另一个:

https://github.com/Redth/ZXing.Net.Mobile

他的示例用法:

var scanner = new ZXing.Mobile.MobileBarcodeScanner();
scanner.Scan().ContinueWith((result) => {   
   if (result != null)
     Console.WriteLine("Scanned Barcode: " + result.Text);
});

答案 2 :(得分:1)

您可以使用Monotouch将本机objective-c libary绑定到您的monotouch项目。

您可以在此处找到有关此主题的详细信息:

http://ios.xamarin.com/Documentation/Binding_New_Objective-C_Types 无法提供任何

您可以在Github上找到RedLaser的准备使用绑定: https://github.com/mono/monotouch-bindings

答案 3 :(得分:0)

我也有效:

http://www.jmawebtechstore.com/p/21/ios-monotouch-barcode-scanner-reader WEB内容无法提供任何

我有一个完整的条码扫描应用程序,包含源代码。我的应用程序将条形码保存到数据库,将照片保存到相册。