Reputation: 39
our iOS app is running in portrait mode only without a problem. I have set the following in the info.plist.xml
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
I now added AdColony framework to the project. Everything works good except when I rotate the device from portrait to landscape mode while watching the video: the video rotates. That's ok, but after the video has finished and it returns back to the app, it's broken (see screenshots). Somehow it's stuck in landscape mode. Can someone help me how can I fix it?
http://s9.postimg.org/dog11jywf/IMG_0040.png http://s9.postimg.org/xkc0h3fxr/IMG_0041.png
Upvotes: 0
Views: 852
Reputation: 39
The problem was the AlertView lib. I use DLAVAlertView, when the video stopped an alert appears which detect the orientation changes, and messed up the layout. So I disable the orientation changes for the alert.
Upvotes: 1
Reputation: 221
AdColony videos don’t show in portrait on iPhones (landscape only) so, as long as you aren't rotating the device to the landscape orientation opposite to the one the video is playing in when you reorient your device, the video shouldn’t rotate. It sounds like you’re using an old version of our SDK that is not iOS 8 compatible. Please update to the latest version available on our GitHub page. If you are still experiencing issues after that, please submit a support ticket to [email protected].
Upvotes: 1