From a713fcd35b952bc5215b8e235c5e854680706679 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 1 Mar 2011 08:38:35 -0800 Subject: Add -[CYWebView reloadFromOrigin]. --- CyteKit/CyteWebView.mm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CyteKit/CyteWebView.mm') diff --git a/CyteKit/CyteWebView.mm b/CyteKit/CyteWebView.mm index 5c07039..c7044bc 100644 --- a/CyteKit/CyteWebView.mm +++ b/CyteKit/CyteWebView.mm @@ -350,6 +350,10 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se } } +- (void) reloadFromOrigin { + [[[self _documentView] webView] reloadFromOrigin:nil]; +} + + (void) initialize { if (Class $UIWebViewWebViewDelegate = objc_getClass("UIWebViewWebViewDelegate")) { class_addMethod($UIWebViewWebViewDelegate, @selector(webView:addMessageToConsole:), (IMP) &$UIWebViewWebViewDelegate$webView$addMessageToConsole$, "v16@0:4@8@12"); -- cgit v1.2.3