Last active
August 29, 2015 13:57
-
-
Save roguenet/9697120 to your computer and use it in GitHub Desktop.
Avoiding Context3D context loss in AIR on iOS when popping CameraRoll.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.