mWindow.rootViewController doesn't work on the iPad 3.2

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
megatema
Halfling
Posts: 43
Joined: Fri Mar 09, 2007 12:59 pm
Location: Saint-Petersburg, Russia
x 2

mWindow.rootViewController doesn't work on the iPad 3.2

Post by megatema »

If you try to start app on iOS less then 4.0 you get following error:

Mon Jan 23 11:00:24 UIKitApplication:com.g5e.scity.hd[0x25e4][6067] <Notice>: GLESRenderSystem::_createRenderWindow "...", 768x1024 fullscreen miscParams: FSAA=None contentScalingFactor=1.0 displayFrequency=0 Hz orientation=Landscape Left
Mon Jan 23 11:00:24 [6067] <Error>: *** -[UIWindow setRootViewController:]: unrecognized selector sent to instance 0xf2a080
Mon Jan 23 11:00:24 [6067] <Error>: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[UIWindow setRootViewController:]: unrecognized selector sent to instance 0xf2a080'

This is because mWindow.rootViewController do not exist on iOS firmware less than 4.0.

I found solution how to fix it, but did check it yet.
http://stackoverflow.com/questions/5627 ... oesnt-work

Maybe this information will be usefull for Ogre users :)
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: mWindow.rootViewController doesn't work on the iPad 3.2

Post by masterfalcon »

Also of note: iOS 4.0 is the minimum for Ogre 1.8.