Search code examples
iosxcodeuistoryboardscreen-orientationxcode-storyboard

can't change orientation of ViewController in storyboard


I need to change the orientation in storyboard but it doesn't change

Here is where i change it

enter image description here

And also how to set only portrait mode for the whole app


Solution

  • choose iphone 3.5 inch in size and then it will rotate and you can set only portrait mode by setting general settings of your xcode project in which check only that device orientation which you want