I tried to run zbar with a view. which didn't work..
but now I get a Thread 1:EXC_BAD_ACESSS (code=2, address=0x17)
in this: libobjc.A.dylib`_ZL12realizeClassP7class_t:
and libobjc.A.dylib`_class_lookupMethodAndLoadCache3:
even after changing everything back.. tried cleaning.
tried rebooting simulator. exiting and restarting Xcode..
Not sure where things are mucking up???
HELP !!!
thanks
Ian
ps. It was running fine last night. Compiled clean.. the only thing I added and then deleted was the above code..
Code:
// ala this..
- (void) viewDidLoad
{
[super viewDidLoad];
reader = [[ZBarReaderViewController alloc] init];
reader.readerDelegate = self;
reader.showsZBarControls = NO;
reader.supportedOrientationsMask = ZBarOrientationMaskAll;
ZBarImageScanner *scanner = reader.scanner;
[scanner setSymbology: 0
config: ZBAR_CFG_ENABLE
to: 0];
[scanner setSymbology: ZBAR_QRCODE
config: ZBAR_CFG_ENABLE
to: 1];
reader.readerView.frame = CGRectMake(self.view.frame.size.width* 0.015,self.view.frame.size.height*0.05375,
self.view.frame.size.width *0.965625, 350);
// 309, 350 //
reader.readerView.alpha = 0.5;
[self.view addSubview:reader.readerView];
}
but now I get a Thread 1:EXC_BAD_ACESSS (code=2, address=0x17)
in this: libobjc.A.dylib`_ZL12realizeClassP7class_t:
and libobjc.A.dylib`_class_lookupMethodAndLoadCache3:
even after changing everything back.. tried cleaning.
tried rebooting simulator. exiting and restarting Xcode..
Not sure where things are mucking up???
HELP !!!
thanks
Ian
ps. It was running fine last night. Compiled clean.. the only thing I added and then deleted was the above code..
Last edited: