Hi,
I am facing the similar issue while running my app in both orientation.
I have printed the event.type and system.orientation in my orientation change function and it’s working on simulator but when i am checking consolelog in xcode it does not print anything, though the orientation is happening.
That does not matter for me, The actual problem is when i am using my app on device some times, my screen is displaying half(It happens only in portrait mode).
So i want to know the exact reason.
I am stuck here for last couple of days.
I am using corona version : 1134
Please help.
Here is my orientation function:
<lua>
function onOrientationChange( event )
print(“orientation change==”…event.type)
print(“in orientation change function=”…system.orientation)
if system.orientation == “portrait” or system.orientation == “portraitUpsideDown” then
_G.port = 0
displayText()
else
_G.port = 1
displayText()
end
end
Runtime:addEventListener(“orientation”, onOrientationChange )
</lua>
Here is my screen shot: