I have a small issue with the ZXingWidgetController, if I present the controller using a navigation controller, the view will get pushed right away, however there will be a blank screen for about 1.5 seconds, and then the AVCapture starts. Yet if I present it as a modal, the AVCapture starts as soon as the modal is presented.
I have tampered with the WidgetController quite a bit, as I need to read other kinds of barcodes using the same AVCapture window, and that is working perfectly fine. I though that might be the issue, but after trying the SampleTest that comes with the unmodified WidgetController, and pushing it in a nav controller the behavior is the same. So that is not the problem.
I have tried called the push with a delay, but after the delay the view is still pushed and a blank screen comes up first.
Has anyone dealt with this?
Got back to work today, and looked closely at the code… the problem is actually very simple, the AVCapture start method is getting called in the viewDidAppear method, I moved it to the viewWillAppear method and problem solved 🙂