在尝试集成 Zbar sdk 时遇到此错误。
"+[QRCodeReadViewController presentViewController:animated:]: unrecognized selector sent to class 0x865c74";
提前致谢
我的代码是
+(void)startfn{
ZBarReaderViewController *reader = [ZBarReaderViewController new];
reader.readerDelegate =self;
ZBarImageScanner *scanner = reader.scanner;
[scanner setSymbology: ZBAR_I25
config: ZBAR_CFG_ENABLE
to: 0];
[self presentViewController:reader animated:NO];
[reader release];
}