My app runs in landscape mode. I do not support portrait orientation and, in all of the screens, if I rotate the device to portrait, everything is, as expected, in landscape.
I am displaying iAd banners and they look good, they rotate when they should along with their superviews. Everything is ok regarding banner display.
The problem is that when I tap on them and the actual ad is opened, the whole app orientation gets screwed. The iAD is opened in portrait mode, its position is wrong, offset to half of the screen, and it messes with the whole app orientation, taking it to an unsupported and weird looking portrait mode.
Any thoughts on how to avoid this?
Some app details:
- iOS6
- Landscape mode only
- Cocos2d + UIKit for some screens
- The integration code for iAds is standard, as explained on the iAds programming guide
- The app root view controller is a simple UIViewController, no navigation controllers or anything like that.
- It doesn't use autolayout.