I have a UILabel (as highlighted in yellow), which has the following conditions applied to it.
- Label has variable text length
- Font set to 40
- Minimum font-size set to 20
- Number of lines set to 3
Although this looks like a duplicated question I believe it is not. The issue I am having is that when the text exceeds the available 3 line length after being sized-down to 20 points, the UILabel's bounding box is sized incorrectly (i.e. note the extraneous spacing above and below the text).
The end result should be a UILabel without any spacing. Is there are solution to this, while keeping the number of lines set to 3?
See Question&Answers more detail:os