Created
December 12, 2011 22:37
-
-
Save bored-engineer/1469472 to your computer and use it in GitHub Desktop.
Hook webViewDidFinishLoad via theos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
%hook UIWebBrowserView | |
- (void)webViewDidFinishLoad: (UIWebView *)webView{ | |
//NSLog(@"URL = %@",[webView stringByEvaluatingJavaScriptFromString:@"window.location"]); | |
%log; | |
%orig; | |
} | |
%end |
I tried all three of them but none of them is working. I tried hard but cannot find any solution, have you got a solution?
I never did find it.
Have you found a solution to this problem?
We need to implement UIWebViewDelegate within the ViewController. However, I am not sure how I can get the UIWebView instance after I hook into the ViewController. e.g., webviewinstance.delegate = self has to be done.
Any ideas?
it's changed, try
- (void)webView:(UIWebView *)webView didFinishLoadForFrame:(id)arg2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
MS:Warning: message not found [UIWebView webViewDidFinishLoad:]