I'm creating an iOS application
and i've encountered the following problem:
The project is set to be a portrait
mode application.
I have a UIWebview
, which loads a webpage with a youtube
video in it. When the video is clicked it starts in the youtube player
. When the video changes to landscape
mode and 'done' is clicked it returns to the UIWebview
showing it in landscape
.
I do receive a NSNotification
when the video is finished but I'm not able to force portrait
mode.
This should not be possible, how can I allow youtube to be in landscape
but force the app to stay in portrait
mode? Or is there another workaround?
EDIT:
After contact with Apple it turned out to be a bug and is reported.