1
votes

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?

1

1 Answers

2
votes

It should be issue with statusBarOrientation.

Try to add

[UIApplication sharedApplication].statusBarOrientation = UIInterfaceOrientationPortrait;

in viewWillAppear:.