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

Spacing "Enter " xcode

How can i add next line on label? e.g i write

Custom notifications timing for the morning and evening digest.

But i want

Custom notifications timing for the
morning and evening digest.

How can make that space , enter in Xcode , label?

1 Answer

Aurelian,

Click on your label, then look at your attributes panel. (mine is on the right). You will see Text, Color, Font, Alignment, then Lines. Change lines from 1 to 2, then adjust the width and height of your label to fit your desired layout.

thank you, really helpful. New to Xcode and I'm trying to learn new stuff by just coping some random layouts :D although not sure how to make things work but uh . I have another question, how do i add time and that break line like on this picture?

http://scr.hu/2icp/yfzia