[SOLVED] [iPad] shouldAutorotateToInterfaceOrientation

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
d000hg
Goblin
Posts: 257
Joined: Tue Sep 02, 2008 9:41 pm
x 1

[SOLVED] [iPad] shouldAutorotateToInterfaceOrientation

Post by d000hg »

Using the sample app code for 1.8 I get the familiar error:
The view controller <EAGLViewController: 0x6b14b00> returned NO from -shouldAutorotateToInterfaceOrientation: for all interface orientations. It should support at least one orientation.
The app runs so is this a problem?

I found this thread from MasterFalcon: http://www.ogre3d.org/forums/viewtopic.php?t=61806
But how did things resolve - for instance can I control it through the CFG as was proposed?
Last edited by d000hg on Thu Aug 30, 2012 8:46 pm, edited 1 time in total.
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126

Re: [iPad] shouldAutorotateToInterfaceOrientation

Post by masterfalcon »

Check your Info.plist. Do you have any supported orientations listed in it? If not, add those that you want to support.
d000hg
Goblin
Posts: 257
Joined: Tue Sep 02, 2008 9:41 pm
x 1

Re: [iPad] shouldAutorotateToInterfaceOrientation

Post by d000hg »

masterfalcon wrote:Check your Info.plist. Do you have any supported orientations listed in it? If not, add those that you want to support.
No that was missing, thanks!

Does Ogre properly support screen rotations or do I need to do anything?
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126

Re: [iPad] shouldAutorotateToInterfaceOrientation

Post by masterfalcon »

It lets the view controller handle the rotation for you. If you switch from portrait to landscape or vice-versa, the screen buffer will be auto resized by Ogre.
d000hg
Goblin
Posts: 257
Joined: Tue Sep 02, 2008 9:41 pm
x 1

Re: [SOLVED] [iPad] shouldAutorotateToInterfaceOrientation

Post by d000hg »

Perfect.