My game is meant to be played in exactly one orientation because is uses the accelerometer to move the player and extreme movement would flip the display.
I found
Quote: "shouldautorotatetointerfaceorientation"
in AGK/IDE/apps/<appname/Classes/UntitledViewController.m.
In my Xcode project I set the Supported Device Orientations for both iPhone/iPod and iPad to Landscape Right only. And set the initial orientation for landscape right home.
If I leave UntitledViewController.m completely alone, the behavior (except for the ad) is correct on both my iPad 2 and iPod Touch. The game displays in only one orientation and does not rotate at all.
And the ad touch area is in the wrong place for the orientation.
The default in UVC.m is Yes for portrait and No for everything else.
So, I set it to Yes for only landscape right.
On my iPod, everything showed and behaved correctly except the splash screen. The splash screen showed upside down in 'portrait' mode. But the game showed correctly and all clicks (ad or other) worked.
On my iPad however, the initial display (pre-splash) is correct, the splash shows incorrectly (upside down portrait stretched to fill) and the main game is squashed (it would be sorta correct in Portrait mode with tiny display). And anything that could be clicked on was totally in the wrong place. The ad seemed clickable in the lower left of the iPad, but outside the display for the game. Random smacking around the iPad might accidentally get a game started, but nothing worked right.
I went to test on my Android (and remembered to update the manifest to be in landscape mode), but could not get 1074 to recognized my bytecode file (I'll take this back up in the right thread in Android).
EDIT: with untouched UVC.m, my iPad rotates the game to portrait mode but with the correct proportions and the ad click works. The iPod displays in portrait mode with game stretched to fill and all the clicks are wrong. I can't seem to get consistent behavior at all, no matter what I have the UVC.m values at.
I just tried playing my iPod version, with menu showing correctly (YES on landscape right in UVC.m). But the accelerometer readings are all wrong!
And the iPad version is just plain messed up with the display and where it records clicks.
I'm going back to default settings and using SetOrientation(0,0,1,0) and wait for update to do ads.
Cheers,
Ancient Lady