cancel
Showing results for 
Search instead for 
Did you mean: 

Documentation needs an example for scanning Barcodes, FUIBarcodeScanViewController unclear

0 Kudos

Hey, basically I just want to either:

1) Start a predefined view that scans a QR code, and gives me a String back or

2) Start my own View/ViewController which embeds the SDK's Scanner.

Both of these are outside of a searchbar etc.

I tried to follow the instructions at the docs but they do not work at all.

I'll start listing the things which I do not understand:

"Developer may use segue in their storyboard to access this FUIBarcodeScanViewController in FUIBarcodeScanViewController.storyboard." What storyboard file? It was not created within my project.

I don't know how to use the variant with prepare.

Next on, the version with customScanFromCode. Gist to my code

FUIBarcodeScanViewController.createInstanceFromStoryboard() always returns an instance with almost all values set to nil.

My app crashes by the time "scanViewController.barcodeScanner.scanMode = .qr" got executed, because barcodeScanner gets force-unwrapped, and it was nil.

I am not able to launch a Scanner in any way. There is also no example or guide which I could find.

View Entire Topic
perage
Participant
0 Kudos

Hi,

I came accross this as well, and what the neither the tutorial nor the gist cover is how to invoke the barcodescanner when touching the barcode symbol. From the API it says that method searchBarSearchButtonClicked will be invoked, but I've implemented that method, and nothing happens when touching the barcode icon.

Any clues?