UITableViewCell With UIWebView Dynamic Height

前端 未结 10 2076
深忆病人
深忆病人 2020-12-04 11:52

I have a table view with cells that have a webView in them, I want the height of the cell to match the height of the webView.

This is the code I use:



        
10条回答
  •  醉酒成梦
    2020-12-04 12:18

    Implement the UITableview delegate heightforrowatindexpath to return the webview frame height.

提交回复
热议问题