How to get dynamically height for UITableViewCell

前端 未结 1 1944
伪装坚强ぢ
伪装坚强ぢ 2021-01-26 03:25

I created Customized tableViewCell, I added UIView SubView in UITableViewCell. So my all dynamic Text & Image Content in UIView and it will change according to text and ima

相关标签:
1条回答
  • 2021-01-26 03:42

    for dynamically height for UITableViewCell set in viewDidLoad

    _tableView.estimatedRowHeight = 100.0;
    _tableView.rowHeight = UITableViewAutomaticDimension;
    

    this set automatic cell height as per content height

    Let me know if this works...

    0 讨论(0)
提交回复
热议问题