I have a problem with my app auto setting the oriantation angle to top left after device rotation.
i use something like this
local function onOrientationChange( event ) --this is here just to check if event handler works local newAngle = group.rotation - event.delta transition.to( group, { time=150, rotation=newAngle } ) end Runtime:addEventListener( "orientation", onOrientationChange )
After clicking in simulator hardware->rotate … the screen rotates, but all objects stay oriented to the same angle(from portrait to landscapeLeft) it is bottom left, but not the top one. Those actions in onOrientationChange works well, but according to bottom left corner.
But the sample app, “nativeOrientation” works fine, although i did everything in my app with the same principle.
builtin-settings is similar to sample app, i’ve added the support of different orientation.
Thank you very much, and sorry for my english.
