美文网首页
2018-05-10

2018-05-10

作者: SJon | 来源:发表于2018-05-10 20:13 被阅读11次

//解决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

      本文链接:https://www.haomeiwen.com/subject/wgmtdftx.html