yeahdongcn / RSBarcodes_Swift

1D and 2D barcodes reader and generators for iOS 8 with delightful controls. Now Swift.
MIT License
707 stars 185 forks source link

Downcast issue #68

Closed julianrichie closed 8 years ago

julianrichie commented 8 years ago

hi, i'm getting this Downcasting error for the Swift 3.0 branch

screen shot 2016-08-29 at 12 40 24 pm screen shot 2016-08-29 at 12 40 49 pm
yeahdongcn commented 8 years ago

Please add one line here to remove the face recognition.

    // MARK: NOTE: If you want to detect specific barcode types, you should update the types
    let types = NSMutableArray(array: self.output.availableMetadataObjectTypes)
    // MARK: NOTE: Uncomment the following line remove QRCode scanning capability
    // types.removeObject(AVMetadataObjectTypeQRCode)
    types.removeObject(AVMetadataObjectTypeFace) // Add 
    self.output.metadataObjectTypes = NSArray(array: types) as [AnyObject]
julianrichie commented 8 years ago

ok thanks, i'll try it