How to do multiline UILabel in ios?

前端 未结 4 1701
抹茶落季
抹茶落季 2021-02-01 02:33

I\'m dynamically populating the title (UILabel). Sometime it\'s bit too long and IOS squeeze the font to fit in the width. Is there a way to do multiline with using same font si

4条回答
  •  无人及你
    2021-02-01 03:01

    Yes, you set the numberOfLines to 0, and the .lineBreakMode to UILineBreakModeWordWrap in code, or the equivalents if your label is defined in IB.

提交回复
热议问题