Pregunta

- (IBAction)scanProduct:(id)sender
{   
   // for scanning product
    ZBarReaderViewController *reader = [[ZBarReaderViewController alloc] init];
    reader.readerDelegate = self;
    reader.supportedOrientationsMask = ZBarOrientationMaskAll;    
    ZBarImageScanner *scanner = reader.scanner;    
    [scanner setSymbology: ZBAR_I25
                               config: ZBAR_CFG_ENABLE
                                   to: 0];    
    [self presentModalViewController: readerqr
                                        animated: YES];  
}

when clicks on button readerqr appears with green rectangle.

¿Fue útil?

Solución

Looking at the documentation for ZBarReaderViewController, it looks like setting tracksSymbols to NO might do the trick.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top