Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode: Need to lock game to portrait only

I just released a game to the app store and realized I completely forgot to lock it to portrait only. I need to submit an updated version that does just that. At this point, is it enough to just go to general > deployment info and uncheck everything but Portrait and then submit this as a new build? Or do I also need to do something to the code? Please note that it's a swift app.

like image 530
Kevin Ok Avatar asked Mar 13 '15 16:03

Kevin Ok


People also ask

How do I make my iOS App portrait only?

Go to Targets -> General, scroll down and you can select the Orientation as portrait only.


2 Answers

Simple.

Here's how you do it.

This works for both objective c and swift.

1. Open your project and go do your build settings.

enter image description here

Scroll down to the tab that says Deployment Info.

enter image description here

3. From there you can see a section called Device Orientation, This is where you need to be. Select an orientation like so.

enter image description here

4 Build the project and you are done!

enter image description here

like image 155
Jesse Onolemen Avatar answered Sep 20 '22 01:09

Jesse Onolemen


Go to your info.plist file, Supported interface orientations, delete the keys you don't need.

like image 21
Dreaming In Binary Avatar answered Sep 21 '22 01:09

Dreaming In Binary