summaryrefslogtreecommitdiff
path: root/CyteKit/WebView.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-21 18:43:43 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-21 18:43:43 -0700
commitd821ecc1bb06d52d40cd947387eb296aaa82371a (patch)
tree112de4f50d8f28409bedd1e8cc647b1d90566a5a /CyteKit/WebView.mm
parenta68d4636c816f3f70192f55d78fc0ec00b72dd5a (diff)
Provide -[CyteWebView scrollView] helper.
Diffstat (limited to 'CyteKit/WebView.mm')
-rw-r--r--CyteKit/WebView.mm8
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) {