Uilabel not updating

Some of the text easily fit in 2–3 lines and other text required 6–7 lines or more to properly fit.I kept adjusting my text labels using to account for the lines of text I received back from the API.Controls the horizontal alignment of the text within the label.

Access this value at runtime with the Specifies what happens when a line is too long for the label’s bounds.I quickly got the awful feeling that is not very smart, there’s got to be a better way.And of course there is, as always, your code should be dynamic, it should be able to adjust to the incoming data.Character wrap and word wrap are most commonly applied to multiline labels and determine the position of line breaks between consecutive lines.Select word wrap to place line breaks at word boundaries, or character wrap to insert line breaks in words.

Leave a Reply