I've just updated to the latest greatest Cocos2D and, wow, things have changed! So now I'm hunting through my code trying to figure out which of my own hacks are no longer needed because they are now officially supported by the framework. Woohoo! A quick question about autorotation to which I can't seem to find an answer:
Say my app wants to support Portrait and PortraitUpsideDown. And say that I'm relying on accelerometer to tell me which way is DOWN. I'm using the UIView autorotate code in Cocos2D. How can I tell if the UIView was rotated so that I can reverse my accelerometer vector?