I have the following issue: a source view controller A triggers a destination view controller B
A->B
that in turn turns on the camera and begins scanning barcodes.
Now, the segue used to push the destination view controller (B) is a push one, so, I have a tabbar navigation button allowing me to return to the source view controller (A). I need to make sure that before I return to the source view controller (A) I switch off the camera.
This doesn’t happen right now (I can see in the console that the camera keeps refocusing despite the control being passed to the source view controller (A)).
How do I do that?
Thanks a lot in advance,
Peter
I have the following issue: a source view controller A triggers a destination view
Share
In view controller B, add the code to switch off the camera to the
viewWillDisappearmethod.