iosdevice-orientationinterface-orientation

Difference between Interface Orientation and Device Orientation?


What's the Difference between Interface Orientation and Device Orientation? Both of them seems the same but what's the actual difference between them?


Solution

  • Interface Orientation can be anything, regardless of device orientation. Device Orientation is the actual physical orientation of the device you are holding, and this is not variable; it is what it is. If you are holding in Portrait, it is Portrait. But just because the device is in Portrait doesn't mean your interface is also in portrait. You may require your app to only provide landscape orientation, hence the interface orientation would be different than the device orientation.