Dynamically increase height of UILabel & TableView Cell?

前端 未结 7 1706
广开言路
广开言路 2020-12-01 12:52

I have a UITableView in which i am displaying a custom cell.I my cell i have two label & one view as below in picture.

I have given constraint of left v

7条回答
  •  失恋的感觉
    2020-12-01 13:27

    You need to define maximum estimated Height when view is loading

    tblObject.estimatedRowHeight = 300;
    tblObject.rowHeight = UITableViewAutomaticDimension;
    

提交回复
热议问题