In previous versions of Corona I have code that will animate the rotation of the stage around the center-point when the device orientation changes.
With Android I don’t need to add special coding since the OS handles this quite nicely. On Android < 4.0 you have “instant rotation” (which is standard on those versions) and on >4.0 the OS will animate the rotation for you.
It’s a problem on iOS though. Currently Corona SDK forces “instant rotation” which I could accept if it weren’t for the fact that iOS imposes an animated “empty” black frame when this occurs (and there’s no way to deactivate it). The only acceptable solution is to create an animated rotation of the stage that matches the iOS animated black frame.
I’ve been able to get around this issue with Graphics 1.0, however with Graphics 2.0 I haven’t found a solution.
I’ve played around with this for a while hoping that creating a top level “stage container” would fix this problem. It doesn’t. The reason being that the Origin of the container is fixed and can’t be set. If I create a top level container that auto-rotates properly, all coordinates within the container will be “true Cartesian” (0,0 in the center of the display). While this in theory *would* work, I think there would be many problems trying to implement it.
So, unfortunately it looks like with Graphics 2.0 we are no longer able to have animated autorotation animation that behaves like it should on iOS devices.
Please tell me I’ve missed something…
EDIT:
I understand that you don’t want to make any modifications to the basic functionality of Graphics 2.0, however this whole issue would be solved if you could make a special hardcoded exception for the stage object in that the Origin would be in the top-left, while the Anchor would be in the center.