I have it working in iOS4.x to automatically scan but on iOS3.x it does nothing, I'm using the following code
//present a barcode reader that scans from the camera feedreaderActive=YES;ZBarReaderViewController*reader=[ZBarReaderViewControllernew];reader.readerDelegate=self;UIImageView*overlayGraphicView=[[UIImageViewalloc]initWithImage:[UIImageimageNamed:@"corners.png"]];overlayGraphicView.frame=CGRectMake(30,60,260,310);reader.cameraOverlayView=overlayGraphicView;[overlayGraphicViewrelease];reader.showsZBarControls=NO;ZBarImageScanner*scanner=reader.scanner;//disable rarely used I2/5 to improve performance[scannersetSymbology:ZBAR_I25config:ZBAR_CFG_ENABLEto:0];if(![reader.viewsuperview])[scannerViewaddSubview:reader.view];
I don't want to add a manual scan button and apparrently by default it automatically scans but under iOS3.x it does not. NB it has been weak linked.
Any ideas?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have it working in iOS4.x to automatically scan but on iOS3.x it does nothing, I'm using the following code
I don't want to add a manual scan button and apparrently by default it automatically scans but under iOS3.x it does not. NB it has been weak linked.
Any ideas?
This should be in the developer's section.
> I don't want to add a manual scan button … under iOS3.x
You need to read the chapter in the SDK docs about Backward Compatibility; I believe that everything you ask here is answered there…