How to set dynamic height of cell based on content

后端 未结 4 564
鱼传尺愫
鱼传尺愫 2021-02-04 16:28

I am have an app which requires to display user comments within a table cell. How can I set the dynamic height of the cell based on the contents of the cell like in Instagram?

4条回答
  •  臣服心动
    2021-02-04 17:20

    You should refer to this question. The answer is here.

    Dynamic UITableView height in UIPopoverController (contentSizeForViewInPopover)?

提交回复
热议问题