I'm fairly new to the iOS SDK and Objective C, and I'm not exactly sure what's going on in this code snippet:
-(IBAction) scanButton{
ZBarReaderViewController *reader = [ZBarReaderViewController new];
reader.readerDelegate = self;
reader.supportedOrientationsMask = ZBarOrientationMaskAll;
ZBarImageScanner *scanner = reader.scanner;
[scanner setSymbology: ZBAR_I25 config: ZBAR_CFG_ENABLE to:0];
[self presentViewController:reader animated:YES completion:nil];
}
What exactly does the readerDelegate do? Does it just wait for an object (barcode) to be returned?
Also what is the = reader.scanner doing?