yeahdongcn / RSBarcodes

1D and 2D barcodes scanner and generators for iOS7 with delightful controls.
MIT License
383 stars 59 forks source link

Views disappear if app goes to background #13

Closed guilhermearaujo closed 10 years ago

guilhermearaujo commented 10 years ago

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.

yeahdongcn commented 10 years ago

I'll try to fix this today.

yeahdongcn commented 10 years ago

Fixed.