Skip to content

Instantly share code, notes, and snippets.

@roguenet
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roguenet/9697120 to your computer and use it in GitHub Desktop.
Save roguenet/9697120 to your computer and use it in GitHub Desktop.
Avoiding Context3D context loss in AIR on iOS when popping CameraRoll.
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
// prevent the cameraroll from showing the status bar, the showing of which causes a context loss in AIR
[[UIApplication sharedApplication] setStatusBarHidden:YES];
}
@roguenet
Copy link
Author

Here, Adobe. I spent the last 6 hours figuring out that if you had just included this in your iOS implementation of CameraRoll for apps that don't show the status bar, the Context3D context loss does not happen and I could use your version. If I'd known anything about native iOS programming before that, I'm sure I could have figured it out much faster.

This has only been an open issue in your bug database since November. I can understand how you haven't been able to solve it in all that time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment