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
Bradan Jackson
20,558 PointsSimple 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?
Chirs Davies
6,379 Pointswould 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
Bradan Jackson
20,558 PointsA string needs quotes.
In the future, please create a new thread for your questions.
greeting("Tom")
Bradan Jackson
20,558 PointsBradan Jackson
20,558 PointsFound it. The preferred width in the size inspector was set to automatic, which I guess made it ignore the width constraint.