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

Simple Swift App - Stage 4 - Adapting Our Content

In the video for Adapting our content, when he changes the label's set number of lines to 0, X Code complains of ambiguity. Mine does not and even when I manually set the height constraint to 41, the text still doesn't wrap in the simulator.

Has anyone else run into this issue?

Found it. The preferred width in the size inspector was set to automatic, which I guess made it ignore the width constraint.

would you be able to help me out with this by any chance?

Call the function greeting and pass it the string "Tom".

func greeting(person: String) { var person = Tom println("Hello (person)") }

greeting(Tom)

where am i going wrong?

1 Answer

A string needs quotes.

In the future, please create a new thread for your questions.

greeting("Tom")