Thursday 27 April 2017

Adjust UILabel height or width to text

  • First, you need to add contains height for UILabel
  • Then, modify the Relation from Equal to Greater than or Equal
enter image description here
  • Finally, change the lines of UILabel from 1 to 0
enter image description here
Your UILabel will automatically increase height depending on the text

No comments:

Post a Comment

Remove bottom line in navigation bar

navigationController ?. navigationBar . setBackgroundImage ( UIImage (), for: . any , barMetrics: . default )          navigat...