Search code examples
iosobjective-cipaduiinterfaceorientation

iOS orientation issue with external display


I have made simple SingleViewApplication and added a label. Problem is the external display which is supposed to be in landscape but its in portrait, so whatever i do my app is in sideways as shown in picture. I have tried landscape orientation as well as portrait orientation.

Any thoughts on this. enter image description here


Solution

  • Fixed this issue by setting device orientation as Landscape and retuned NO in shouldAutoRatate