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) Designing your App Using Auto Layout

Mathieu Grenier
PLUS
Mathieu Grenier
Courses Plus Student 8,997 Points

i dont have this "Factor button" in Storyboard from Xcode 6. How got that ? thanks

need more info how doing this with Xcode 6...

1 Answer

przink
przink
14,222 Points

Hey there,

It looks to me like they moved the factor button in Xcode 6. I don't know for sure but I suppose they did that because now there are 4 different iPhone sizes so a button that toggles the storyboard size wouldn't have made the most sense. However, you can see how the layout of your app looks on different devices by following the directions in this link that explains how to preview your layout for different devices

If you don't feel like clicking the link here are the basic steps without the pictures.

The basic steps laid out in the documentation are:

  1. Open a storyboard or xib file in Interface Builder.

  2. Choose View > Assistant Editor > Show Assistant Editor.

The implementation file that corresponds to the storyboard or xib file opens in the assistant editor.

  1. Open the Assistant pop-up menu.

The Assistant pop-up menu is the first item to the right of the back and forward arrows in the assistant editor jump bar.

  1. In the pop-up menu, scroll to the Preview item and choose the storyboard or xib file.

A preview of the layout appears in the assistant editor. (For Mac apps, if a preview doesn’t appear, select a view in the icon or outline view.)

  1. Choose preview options.

To preview your layout in a different localization, select a language from the pop-up menu in the lower-right corner of the preview.

To preview the layout of an iOS app for different devices on different versions of iOS, click the Add button in the lower-left corner of the preview and choose a device from the pop-up menu.

To switch between landscape and portrait views of an iOS app, move the cursor over the previewed device and click the the Orientation Layout button (../art/orientation_button_2x.png) for that device. To delete a previewed device, select it and press Delete. To adjust the zoom level of the preview, double-click it to toggle between 100% and 50% zoom levels.

Hope this helps!