Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AirPlay menu incorrectly displays in portrait on iOS 6

I'm using an AVPlayer and MKVolumeView to display the native AirPlay output menu.

In iOS 6, the AirPlay output menu seem to be presented in portrait regardless of the orientation of the status bar. In iOS 5, it followed the status bar orientation.

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

like image 437
Anton Avatar asked Nov 06 '12 14:11

Anton


People also ask

How do I force an app to landscape in iOS?

On an iPhone with a Home button, swipe up from the bottom of the screen to access it. On an iPhone without a Home button, swipe down from the top-right corner of the screen instead. Here, tap on the rotation lock icon (which looks like a lock with a circular arrow) to turn it on or off.

Where are AirPlay settings in iOS?

On the iPhone, down from the upper-right corner to open the Control Center. Tap and hold the Music control area, then select the AirPlay icon. Choose a device to connect over AirPlay.


1 Answers

Found a way to resolve this issue. Just override the UIActionSheet method showInView using a category. Then set the view in showInView with your view. Probably this will resolve the issue. It has worked for me.

like image 125
m4n1c Avatar answered Oct 19 '22 11:10

m4n1c