0

Hi I am trying to show camera controls using zbar in ios for scanning.

i have written following code

ZBarReaderViewController *readerController = [[ZBarReaderViewController alloc] init];
readerController.sourceType = UIImagePickerControllerSourceTypeCamera;
readerController.tracksSymbols = YES;
readerController.showsCameraControls = YES;
readerController.showsZBarControls = YES;
[readerController release];

But application crash every time when i show zbar controller.

and app work fine if i remove this line

readerController.showsCameraControls = YES;

But then i can not see any control on scan view

iPhoneQ
  • 105
  • 11

1 Answers1

0

"BOOL showsCameraControls Raises an exception if anything other than NO is set." Check the following link for details: ZBarReaderViewController Class Reference. Cheers

pnizzle
  • 6,243
  • 4
  • 52
  • 81