UIWebView: Media Player Rotates View Controller

Posted by RileyE on Stack Overflow See other posts from Stack Overflow or by RileyE
Published on 2012-06-25T20:28:36Z Indexed on 2012/06/30 3:16 UTC
Read the original article Hit count: 252

Filed under:
|
|

I'm encountering an issue while using a webview. My app is currently a portrait application, but when a media player loads in a webview within my app, the user can rotate the player, which rotates my view controller as well. I know I can get a notification for when the player comes up and disappears, but is there a way to prevent it from rotating the controller in the first place?

It doesn't seem like anyone has an answer. I have all of the standard "don't rotate unless if I tell you to" methods and plist values, but its still rotating. Its only when I load up a webview and the media player loads over it. If I rotate my device, the media player rotates along with it, which feels natural, but when I go back to the webview view controller, its rotated, which isn't good.

© Stack Overflow or respective owner

Related posts about ios

Related posts about uiwebview