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!

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 Build a Simple iPhone App with Swift Improving Our User Interface Adapting Our Content

Followed the video but layout is off to the left more instead of centered in Simulator.

I followed the video step by step and when I run the app in the simulator, all of the text and buttons are more towards the left instead of centered on screen.

1 Answer

Stepan Ulyanin
Stepan Ulyanin
11,318 Points

Hi, you have to specify constraints for the elements to give them fixed place on the screen, I believe that in the video is older version of xcode is used, that is why they didn't have to specify the constraints