Possible Duplicate: Custom Camera View Not Working on iOS 8/Xcode 6
I'm using AVFoundation
to capture still images. It was working fine until iOS8
arrival. On IOS8
if my app goes to background while camera layer is still floating and then after app comes in foreground the camera layer freezes and calling capture image method does't work. Any help?
try this...
In –viewWillAppear: start camera capture on main thread, like this..
dispatch_async(dispatch_get_main_queue(), ^{
if (![session isRunning])
{
[session startRunning];
}
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With