Dynamically change UITable cell height?

后端 未结 5 1612
心在旅途
心在旅途 2021-01-01 05:44

I need to resize the cell height based on the content size/length.tried several methods, which one gives the exact height without overlapping?

5条回答
  •  一向
    一向 (楼主)
    2021-01-01 06:46

    see this tutorial for change UITableViewCell Height Dynamically..

    Resizing-A-UITableViewCell

    and also use this tutorial..

    uitableviewcell-dynamic-height

    also use tableView:heightForRowAtIndexPath: method for set height of cell with indexpath

提交回复
热议问题