So I have the following code:
NSString *currSysVer = [[UIDevice currentDevice] systemVersion];
if ([currSysVer compare:@"5.0" options:NSNumericSearch] != NSOrderedAscending) {
webScrollView = self.webView_.scrollView;
} else {
webScrollView = [self.webView_ defaultScrollView];
}
webScrollView.delegate = self
and when I scroll it gives me:
-[UIWebView scrollViewDidScroll:]: unrecognized selector sent to instance 0x8e8610
this doesn’t make any sense why the UIWebView is calling the scrollViewDidScroll\
If you look here, UIWebView conforms to UIScrollViewDelegate. In essence it uses the same delegation, as UIWebView is scrollable (you might say it’s a subclass of UIScrollView, though it’s not explicitly stated in the documentation, likely a UIScrollView is a piece of the WebView).