1

Picture of deployment settings

As you can see in the picture, I have set my device orientation to portrait only, but the app will still rotate. I am coding completely programmatically, so there is no storyboard. Any Ideas?

  • 1
    Does this answer your question? [Lock screen Orientation to portrait - ios swift](https://stackoverflow.com/questions/35285392/lock-screen-orientation-to-portrait-ios-swift) – lazarevzubov May 29 '22 at 15:49

1 Answers1

0

After some headache I found that the reason it was acting up was because, I had not selected A Main interface in the "general" Target menu. This mistake started because I had deleted my storyboard to code UI programmatically. If you do the same select "LaunchScreen.storyboard", and your app will work normal.