Welcome to the Treehouse Community
Looking to learn something new?
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.