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!
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
Dynamic UILabel and other objects (programatically)
I'm working on an app, without the use of storyboards.
However, one thing that is completely untouched in most tutorials is designing in code.
For an easy example, I need a UILabel with the following "properties"
The layout should be as follows:
16 points from the left (standard margin) 16 points from the right (standard margin) 8 points from the bottom of the navigation bar.
But more important it needs to automatically resize the font to fit the layout. (So it will have the same aspect ratio on an Iphone 4 and an Iphone 6plus)
after all that. I need to be able to continue this workflow, so I can place my next object 8 points below my UILabel.