Gibbon28, sorry, I must have missed that.
I am assuming that your iPhone 5 is also iOS 6.0.
Apple changed how iOS 6.0 handles orientation and it isn't quite the same as previous iOS versions.
If you don't put in the SetOrientationsAllowed command, the Player definitely won't flip automagically.
I just tested my app that is landscape only on a v1076 Player on iOS 5.1 and iOS 6.0 devices. And it would not rotate in the player automatically. But, when the project is built in Xcode and run on the devices, it worked. And I did the tweaks similar to what is described below.
When you get to the point where you are building in Xcode, there are two things to keep in mind.
The first is make sure you don't use Xcode 4.5 and do use Xcode 4.4. Apple made changes in Xcode 4.5 to accomodate iOS 6.0 that are not compatible with the AppGameKit orientation control. I was able to definitively prove that using Xcode 4.5 is a problem (some other post).
Second, there is a small tweak to be made in the Classes/UntitledViewController.m file specific to your desire for a landscape only mode:
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
switch( interfaceOrientation ){
case UIInterfaceOrientationPortrait: return NO;
case UIInterfaceOrientationPortraitUpsideDown: return NO;
case UIInterfaceOrientationLandscapeLeft: return YES;
case UIInterfaceOrientationLandscapeRight: return YES;
default: return NO;
}
}
The above code is not my tweaked version that takes into account the difference of opinion about landscape orientations between iOS and AGK. It is one that will specifically allow only the two landscape modes.
There are some other Xcode settings that will help make sure your app works only in landscape, but we can go into them later (or you can search for the discussions in this forum).
Cheers,
Ancient Lady
AGK Community Tester