How to change truncate characters in UILabel?

前端 未结 5 699
野趣味
野趣味 2020-12-03 19:31

When the text of a UILabel gets truncated there are 3 dots inserted by default. Is it possible to change these characters or disable them?

5条回答
  •  青春惊慌失措
    2020-12-03 20:16

    You can also set

    [lbl setAdjustsFontSizeToFitWidth:YES];
    

    With this there will be no need of truncating text and you can display the complete text on your label.

提交回复
热议问题