AirPlay menu doesn't display properly in portrait on iOS 6

I use AVPlayer and MKVolumeView to display my own AirPlay output menu.

In iOS 6, the AirPlay output menu appears in the portrait regardless of the orientation of the status bar. In iOS 5, he followed the orientation of the status bar.

Any way to make it follow the status bar, or at least force the orientation?

+8
ios ios6 avfoundation avplayer mpvolumeview
source share
2 answers

Found a way to solve this problem. Just override the UIActionSheet showInView method using the category. Then set the view to showInView with your view. This will probably solve the problem. It worked for me.

+2
source share

Note The following skips the point and is saved for reference only. I will update this answer as soon as I get the right help from the apple engineers on this exact issue.

I was fortunate enough to use the following, adventurous template;

  • Create an intermediate viewController with all orientations allowed.
  • This viewcontroller view is completely transparent ( UIColor clearColor - not alpha = 0.0f).
  • Add a viewcontroller over the current view ( addSubview ).
  • Present the MPVolumeView from this intermediate viewController, on top of its fully transparent view. Strike>

After sending to TSI, the dude Apple asked me to submit a bug report → luck.

0
source share

All Articles