草庐IT

crosshairs

全部标签

iPhone iOS : Can you add crosshairs or other visual indicator to ZBar barcode scanning?

我想知道在iPhone/iOS应用程序中使用Zbar条形码扫描时是否可以在屏幕上添加某种排序或十字线或其他视觉指示器以帮助用户将相机对准QR码? 最佳答案 这最好用透明的PNG来完成。只需将它导入您的项目,然后创建一个新的UIImageView并提供给读者。我这样做是为了添加Logo://Createthereaderself.reader=[ZBarReaderViewControllernew];self.reader.readerDelegate=self;//Createimageforaddingalogo:)UIImag