func scrollViewDidEndDragging(_ scrollView: UIScrollView,
willDecelerate decelerate: Bool) {
self.webView.didScrollEnd { (atbottom, attop) in
if atbottom {
print("scroll bottom")
} else if attop {
print("scroll at top")
}
}
}
[self.webView didScrollEnd:^(BOOL isScrolledAtBottom, BOOL isScrollAtTop) {
NSLog(@"Scroll at Top = %d",isScrollAtTop);
NSLog(@"Scroll at bottom = %d",isScrolledAtBottom);
}];