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 Build a Simple iPhone App (iOS7) Getting Started Adding a UIButton

Shaun Kelly
Shaun Kelly
5,648 Points

My view controller in Xcode appears to be more of a square than a rectangle like a phone in the video tutorials.

How do I change the size/appearance of the view controller ?

Joey Shiner
Joey Shiner
8,372 Points

That's because the way the new Xcode sets up the views. They now use a more universal approach called adaptive layout where you design the UI across all sizes (iPad, iPhone 6+, 6, 5, 4) instead of having to use multiple storyboards for each different size screen.

You should be able to change the size in the size inspector. Change the simulated size from Fixed to freeform and input your new width and height. (iPhone 5 = 320 x 568).

1 Answer

Shaun Kelly
Shaun Kelly
5,648 Points

and how do I do that?