If for some reason nothing is happening after scanning check that
- you have set the SBSBarcodePicker::scanDelegate correctly.
- the barcodePicker:didScan: method is really executed (by for example adding a breakpoint inside it).
- you are executing the code in the correct thread. The SBSScanDelegate method is invoked on a picker-internal queue. To perform any UI work, you must dispatch to the main UI thread. The same goes for other thread specific operations like performing CoreData changes where you have to make sure that you are inside the thread the managed context lifes in.
Was this article helpful?
Comments
0 comments
Please sign in to leave a comment.