I have a problem with label and I don’t understand where is the solution.
I set my label with “Word Wrap” and 3 lines but it cut a word when text wrap…why??
thanks
I have a problem with label and I don’t understand where is the solution.
Share
edit: Somehow this still gets views. More recent versions of iOS no longer have as many issues with UILabel, so this no longer applies. (especially with Auto Layout)
This is a really common problem when trying to use multi-line UILabels. The short answer is to use a UITextField instead if you want multiple lines of text. You get more control over the padding around the text as a bonus.
(yes, you can ‘fix’ the UILabel but sometimes simpler solutions are better)