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

Brian CI
Brian CI
28,971 Points

iOS Crystal Ball - Text doesn't wrap in the prediction

I must have missed a step, I added the lines but still my text doesn't wrap. It was saying for:

"This is a too long prediction"

"This is a too…"

So I did the obvious thing and set "Line Breaks" to "Word Wrap" now I have the same result without "…".

What did I do wrong and how do I fix it?

Thanks

3 Answers

Amit Bijlani
STAFF
Amit Bijlani
Treehouse Guest Teacher

In the Implementing an array video at 6:10 you can see how to increase the number of lines in your label.

Brian CI
Brian CI
28,971 Points

I have already done that, when two didn't do it I increased it to four lines. Then when that didn't do I changed line breaks to to "Word Wrap" and it still doesn't work.

http://s7.postimg.org/nvm21v1h7/p_png.png

Amit Bijlani
Amit Bijlani
Treehouse Guest Teacher

The only thing you are missing is increasing the height of the label. Without adequate height it has no room to wrap long text onto the second or even third line.

Brian CI
Brian CI
28,971 Points

That was it thanks.

Brian CI
Brian CI
28,971 Points

This is what I get: http://s13.postimg.org/b5v0c7hxj/image.png with "Word Wrap" enabled it just removes the …