Recently, I am developing a software. Using WKWebView, I need to dynamically obtain the height of the webView and set it to the tableView, but after the refresh, a large part of the web elements are lost. It is no problem in iOS11.
Finally found that you need to re-setNeedsLayout when the tableView slides
- (void)scrollViewDidScroll:(UIScrollView *)scrollView
{
if (scrollView == _mainTableView) {
[_webMyView setNeedsLayout];
}
}