diff options
Diffstat (limited to 'CyteKit/WebView.mm')
-rw-r--r-- | CyteKit/WebView.mm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CyteKit/WebView.mm b/CyteKit/WebView.mm index 7fac96e..a71e5c2 100644 --- a/CyteKit/WebView.mm +++ b/CyteKit/WebView.mm @@ -361,6 +361,14 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se [[[self _documentView] webView] reloadFromOrigin:nil]; } +- (UIScrollView *) scrollView { + if ([self respondsToSelector:@selector(_scrollView)]) + return [self _scrollView]; + else if ([self respondsToSelector:@selector(_scroller)]) + return (UIScrollView *) [self _scroller]; + else return nil; +} + @end static void $UIWebViewWebViewDelegate$_clearUIWebView(UIWebViewWebViewDelegate *self, SEL sel) { |