Help! Came Center is messing up my view!
Hello,
My game is running in landscape mode; my main view controller for shouldAutorotateToInterfaceOrientation, returns YES for UIInterfaceOrientationLandscapeRight and UIInterfaceOrientationLandscapeLeft, NO for anything else.
Everything seems to work fine, until...
I show game a center leaderboard. The leaderboard comes on okay (in landscape mode), but after it gets dismissed, the orientation of my game somehow gets switched to portrait. I can tilt the device and the view rotates back in to landscape, and then will not go in to portrait again (unless I display the learderboard again).
A bit miffed!
Any help or suggestions would be appreciated..
Thanks,
Jamie.
My game is running in landscape mode; my main view controller for shouldAutorotateToInterfaceOrientation, returns YES for UIInterfaceOrientationLandscapeRight and UIInterfaceOrientationLandscapeLeft, NO for anything else.
Everything seems to work fine, until...
I show game a center leaderboard. The leaderboard comes on okay (in landscape mode), but after it gets dismissed, the orientation of my game somehow gets switched to portrait. I can tilt the device and the view rotates back in to landscape, and then will not go in to portrait again (unless I display the learderboard again).
A bit miffed!
Any help or suggestions would be appreciated..
Thanks,
Jamie.
Blog - http://bit.ly/mrqwak
Games - http://bit.ly/mrqwakgames
Twitter - http://www.twitter.com/mrqwak
Solved it. I was only attaching the view (of the game center view controller) in to the view hierarchy. Turns out I needed to attach the view controller itself.
Blog - http://bit.ly/mrqwak
Games - http://bit.ly/mrqwakgames
Twitter - http://www.twitter.com/mrqwak
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Game Center and iAd integration to an Opengl | iort | 1 | 2,149 |
Oct 8, 2012 10:27 AM Last Post: SethWillits |
|
| Testing Game Center Before Submitting App | superdoctor | 3 | 7,563 |
Jan 15, 2011 12:26 PM Last Post: MattDiamond |
|
| Prevent 3rd party lib from messing up gl | kendric | 6 | 3,749 |
Sep 15, 2009 06:56 PM Last Post: kendric |
|
| iPhone games are front and center at WWDC - MacWorld | Carlos Camacho | 1 | 3,789 |
Jun 11, 2008 05:47 AM Last Post: AnotherJake |
|

