Increase the main tableview row height according to the custom cell

前端 未结 7 691
名媛妹妹
名媛妹妹 2021-01-03 07:32

I am having an app in which I have a Tableview and on that tableview\'s each row I am dynamically creating a custom tableview cell.

Below is the cod

7条回答
  •  天命终不由人
    2021-01-03 07:51

    This video gives a great tutorial on using autolayout to dynamically size UITableViewCells. When I needed to do this for an application I ended up subclassing UITableViewCell and setting my constraints programmatically, and it worked like a charm.

提交回复
热议问题