How can I get the height of a specific row in my UITableView

前端 未结 4 1546
难免孤独
难免孤独 2021-02-04 00:29

In my UITableView i\'ve set different heights for different rows using the delegate method: tableView:heightForRowAtIndexPath:

Now given a

4条回答
  •  无人及你
    2021-02-04 00:49

    By using below code you can get the cell height from tableview

     let height = super.tableView(tableView, heightForRowAt: indexPath)
    

提交回复
热议问题