I'm having this issue, and the same happens with the sample app:
I created a view controller that extends RSScannerViewController, and added a couple of elements on top of the camera view. For they to appear in first place, I need to call bringSubviewToFront:<view> for each element. Then if I minimize or switch apps and then reopen my app, the camera will need to stop and restart capturing. When it restarts, the camera view goes back to front, hiding all the other UI elements that were supposed to be visible.
Try with the sample app: open it, scan a barcode and you will see the text label. Now minimize, reopen the app and scan again. The code will be detected, the green indicator will be shown, but the label is no longer visible.
I'm having this issue, and the same happens with the sample app:
I created a view controller that extends
RSScannerViewController
, and added a couple of elements on top of the camera view. For they to appear in first place, I need to callbringSubviewToFront:<view>
for each element. Then if I minimize or switch apps and then reopen my app, the camera will need to stop and restart capturing. When it restarts, the camera view goes back to front, hiding all the other UI elements that were supposed to be visible.Try with the sample app: open it, scan a barcode and you will see the text label. Now minimize, reopen the app and scan again. The code will be detected, the green indicator will be shown, but the label is no longer visible.