MxABC / LBXScan

A barcode and qr code scanner (二维码、扫码、扫一扫、ZXing、ZBar、iOS系统AVFoundation扫码封装,扫码界面效果封装)
MIT License
3.23k stars 679 forks source link

Crashing app when i try to use scan #229

Open sauryatechnologies opened 3 years ago

sauryatechnologies commented 3 years ago

i have tried several time to solve crashing issue, but not get success.. app crash in LBXScanView.m file, inside -(void) drawScanRect function on below code line at component[0]; getting null

const CGFloat *components = CGColorGetComponents(_viewStyle.notRecoginitonArea.CGColor); CGFloat red_notRecoginitonArea = components[0]; // crash here CGFloat green_notRecoginitonArea = components[1]; CGFloat blue_notRecoginitonArea = components[2]; CGFloat alpa_notRecoginitonArea = components[3];

all components having null value: thats why i think crashing