Question

I am working on a photo-sharing app. The users can take and upload photos, and I use an UIActionSheet to provide selection whether to take a new photo with the camera or choose an existing photo from the library. In an other view I have a list of uploaded photos, and if the user taps on a photo it becomes full screen with QLPreviewController. My problem is that if the preview controller was once opened in full screen, in the completely different view controller of upload the button masks of the action sheet messes up this way:

Messed up UIActionSheet masks

Any idea how to avoid this (obviously) bug of the framework?

Was it helpful?

Solution

It should be issue with statusBarOrientation.

Try to add

[UIApplication sharedApplication].statusBarOrientation = UIInterfaceOrientationPortrait;

in viewWillAppear:.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top