Possible duplicate: Custom camera view does not work on iOS 8 / Xcode 6
I use AVFoundation to capture still images. It worked fine until the arrival of iOS8 . On iOS8 , if my application goes into the background while the camera layer is still floating, and then after the application comes out in the foreground, the camera layer freezes and calling the image capture method does not work. Any help?
AVFoundation
iOS8
try it...
In -viewWillAppear: start capturing the camera in the main thread like this.
dispatch_async(dispatch_get_main_queue(), ^{ if (![session isRunning]) { [session startRunning]; } });
Source: https://habr.com/ru/post/975818/More articles:Setting email header to objective-C? - iosHow to easily parse multidimensional JSON for html? - jsonController for path '/' not found or does not implement IController in Sitecore - c #sql server: error 997 when specifying a password on the command line - sql-serverDoes docker launch execute the CMD command? - dockerDjango automatically generates unique model fields and recursively calls the auto-generator, if not unique - djangoCustom camera view does not work on iOS 8 / Xcode 6 - iosSlow SSD performance on Azure VM - azureRemove unique constrant and make username NULL in ASP.NET Identity - c #Drawing an OpenLayers 3 map in a hidden element - javascriptAll Articles