2018-05-10

//解决wkwebView在iOS 10+/11+ 系统下显示不全的bug
-(void)scrollViewDidScroll:(UIScrollView *)scrollView {

if (scrollView == self.tableView) {
    ZMWebViewCell *cell = [self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]];
    if ([self.tableView.visibleCells containsObject:cell]) {
        [cell.webView setNeedsLayout];
    }
}

}

你可能感兴趣的:(2018-05-10)