([UIDevice currentDevice].orientation);
using the above code in my app, all i get is 0 (unknown)
is there something thats going wrong here? Seems pretty straightforward
edit: more research led me to the problem with using device orientation early in the app, which I am doing. However when I instead use interfaceOrientation, it always returns 1 (portrait)
Are you seeing this in the simulator or on the device?
The Simulator seems to always return 0, regardless of it’s orientation.
If you’re seeing this on the device, have you made sure that you’re calling
From the documentation: