When I use it in my code:
I can run it in the simulator but I can not test it on my device because it says:
attempt to call method 'setOrientation' (a nil value)
main.lua:3: in main chunk
What's the problem with it?