The player is a different beast altogether from running the application directly on a device.
You are not going to have a lot of success getting an app to run in only landscape orientation when run through the Player.
If you cannot get the app to behave the way you want when run directly on the device, then that is a different issue.
When you are building your iOS Player, are you sure that you have the proper v1076 files? If the shouldAutorotateToInterfaceOrientation method in your interpreter_ios/Classes/UntitledViewController.m file doesn't look like this, then you are using an old set of files (and probably libraries):
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
//NSLog(@"Checking Orientation");
switch( interfaceOrientation )
{
case UIInterfaceOrientationPortrait: return agk::CanOrientationChange(1) ? YES : NO;
case UIInterfaceOrientationPortraitUpsideDown: return agk::CanOrientationChange(2) ? YES : NO;
case UIInterfaceOrientationLandscapeLeft: return agk::CanOrientationChange(3) ? YES : NO;
case UIInterfaceOrientationLandscapeRight: return agk::CanOrientationChange(4) ? YES : NO;
default: return NO;
}
}
EDIT: And if it does look like that, switch the 3 and 4 and try again. Apple and AppGameKit have different ideas about which way each landscape mode goes, so there is a big conflict.
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
//NSLog(@"Checking Orientation");
switch( interfaceOrientation )
{
case UIInterfaceOrientationPortrait: return agk::CanOrientationChange(1) ? YES : NO;
case UIInterfaceOrientationPortraitUpsideDown: return agk::CanOrientationChange(2) ? YES : NO;
case UIInterfaceOrientationLandscapeLeft: return agk::CanOrientationChange(4) ? YES : NO;
case UIInterfaceOrientationLandscapeRight: return agk::CanOrientationChange(3) ? YES : NO;
default: return NO;
}
}
Cheers,
Ancient Lady
AGK Community Tester