qr code - Use of unresolved identifier QR Reader -
qr code - Use of unresolved identifier QR Reader -
i have barcode reader code working xcode 6.2 when upgraded xcode 6.3 got error message
use error message of unresolved identifier 'qrcodeframeview'
this code
func captureoutput(captureoutput: avcaptureoutput!, didoutputmetadataobjects metadataobjects: [anyobject]!, fromconnection connection: avcaptureconnection!) { // check if metadataobjects array not nil , contains @ to the lowest degree 1 object. if metadataobjects == nil || metadataobjects.count == 0 { qrcodeframeview?.frame = cgrectzero homecoming } // metadata object. allow metadataobj = metadataobjects[0] as! avmetadatamachinereadablecodeobject // here utilize filter method check if type of metadataobj supported // instead of hardcoding avmetadataobjecttypeqrcode, check if type // can found in array of supported bar codes. if supportedbarcodes.filter({ $0 == metadataobj.type }).count > 0 { // if found metadata equal qr code metadata update status label's text , set bounds allow barcodeobject = videopreviewlayer?.transformedmetadataobjectformetadataobject(metadataobj avmetadatamachinereadablecodeobject) as! avmetadatamachinereadablecodeobject qrcodeframeview?.frame = barcodeobject.bounds if metadataobj.stringvalue != nil { } qr-code xcode6.3
Comments
Post a Comment