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 hidden or 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it's changed, try
- (void)webView:(UIWebView *)webView didFinishLoadForFrame:(id)arg2