I have to support barcode scanning on my project. I\'m using zbar sdk for that.I have integrated the code and run using iphone simulator. I\'m using camera simulator for sca
Fixed It. It was the problem of barcode images. I tried few small barcode images and one worked.So try multiple small barcodes,and at last one will work. More Important the orientation of image should be like this.
Just as additional information :
I drop the image on the simulator and use the two-fingers long tap to open them (as has been pointed out already) , but in my experience it seems that you need to have enough space around the images before zbar can identify them.
So add enough white space around the image and it will probably start to work.
Unless you are testing code paths for when a camera is unavailable, you will need an actual device to test code that uses the zbar sdk.
you can test bar code on iPhone Simulator,
1 - save the bar code to you simulator, open safari and drag drop the barcode image into safari and then long tap the image, I'll ask you to save the image.
2 - run simulator and when on barcode scan screen press "optons+threefingres long tap" it'll open the gallery where you can select the saved barcode image, then It'll scan that image.