解决WKWebView无惯性问题
2016-11-29 本文已影响125人
LJ的ios开发
给WKWebView的scrollView.delegate = self
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView {
scrollView.decelerationRate = UIScrollViewDecelerationRateNormal;
}
给WKWebView的scrollView.delegate = self
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView {
scrollView.decelerationRate = UIScrollViewDecelerationRateNormal;
}