Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Im trying to make a game in swift and I would only like it to be running in landscape mode

Im trying to make a game in swift and I would only like it to be running in landscape mode, but cant find the button for it, do we have to do it programatically?

2 Answers

Go to the top file that has the name of your project and click it. If you scroll down there should be something called deployment info. Click the device orientation that pleases you the most.

When you open an Xcode project go to the file tree and click on the top link, go to the 'deployment info' section on the first page, the fourth option is device orientation, check the ones you want to have available. Hope this make seines, sorry it's not that well explained.