when I test the ARKitDemo project on my device (iPhone4, iOS 4.0.x) the AR camera view can be opened / closed only once, when opening it again it takes a long time to open, and when it finally does, only a black screen is shown.
the reason for this behavior is because the AVCaptureSession is not releasing the camera and continues to block it.
I tried hacking around (based on 8c8793bbf8a8c76f4b281ae5c7066e22b22bb24a) - its quite unclean, but this solved it:
when I test the ARKitDemo project on my device (iPhone4, iOS 4.0.x) the AR camera view can be opened / closed only once, when opening it again it takes a long time to open, and when it finally does, only a black screen is shown.
the reason for this behavior is because the AVCaptureSession is not releasing the camera and continues to block it.
I tried hacking around (based on 8c8793bbf8a8c76f4b281ae5c7066e22b22bb24a) - its quite unclean, but this solved it:
it very likely still has memory leaks as well as problems when one actually wants to reuse the view (because of the forced unloadCamera)