Swift, Auto Resize Custom Table View Cells

前端 未结 4 948
走了就别回头了
走了就别回头了 2020-12-17 06:14

In my app, I have a table view with an image, label and text view in each cell. I would like to be able to auto-resize the cells depending on the amount of content in the te

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-17 07:09

    Set bottom of your textView with bottom of that white UIView and make sure that white UIView has left,right,top and bottom constraints :)

    Same type of example is explained here programmatically....

提交回复
热议问题