How do I create a multiline table cell in iOS?

前端 未结 4 1594
暖寄归人
暖寄归人 2021-02-03 13:40

How can I get the second cell to expand to fit the text rather than scaling the text? Is there a built in way of doing this in iOS or will I have to come up with some home-cook

4条回答
  •  南旧
    南旧 (楼主)
    2021-02-03 13:49

    Where you have the address as the detailTextLabel, use a UILabel thats supports as many lines as you need, for an address, 3 should be enough. Together with Paul Bently's answer, you should be good to go.

提交回复
热议问题