Problems with shouldAutorotateToInterfaceOrientation: when using OpenFeint 2.5.1?
read on!

After adding Openfeint to my BoxMaster game (currently pending app store approval) I noticed that iPad view rotation had stopped working.

This struck me as odd so I did a little digging to find the culprit!

It turns out that Openfenit adds a UIView (and associated UIViewController which does not support auto-rotation) to your root window to work around a particular menu bug. Thankfully this bug only manifests if your application does NOT use any view controllers.

The bottom line here is:
if your application already contains a view controller, you can safely remove this code.

Change: Openfeint.mm

    
 [self fixInCaseOfNoViewControllers];

to this:

    
 // disabled due to auto rotation issues, I promise that I already have a view controller    
 // [self fixInCaseOfNoViewControllers];

Doing so restored my applications rotation behaviour and all is well in the world.

Hope this helps someone out!

Some more related details here: http://openfeint.com/developers/forum/showthread.php?1407-Touch-no-longer-works-after-using-a-MPMediaPickerController

Advertisement