11

I gather the orientation approach changed in the recent version of iOS and I'm not using UIWebView...

Is there a way of locking an entire App to Portrait Mode or do I have to force each View Controller?

Edward Hasted
  • 3,201
  • 8
  • 30
  • 48
  • Possible duplicate of [How can I disable landscape orientation?](https://stackoverflow.com/questions/11785565/how-can-i-disable-landscape-orientation) – Naresh Nov 10 '18 at 05:40

3 Answers3

25

In iOS 7 you can check only portrait in project-> general -> Deployment info.

enter image description here

Rajneesh071
  • 30,846
  • 15
  • 61
  • 74
8

Go to Xcode > "General" and edit:enter image description here

r4id4
  • 5,877
  • 8
  • 46
  • 76
6

Following is the way to lock the orientation of your app to portrait only.

How to lock orientation of your app to portrait only

PunjabiCoder
  • 525
  • 2
  • 8