Created
August 21, 2014 19:18
-
-
Save basketofsoftkittens/89320f9dff783ea845dc to your computer and use it in GitHub Desktop.
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
+ (void)initialize { | |
JSHandler = [NSString stringWithContentsOfURL:[[NSBundle mainBundle] URLForResource:@"ajax_handler" withExtension:@"js"] encoding:NSUTF8StringEncoding error:nil] ; | |
} | |
- (void)webViewDidStartLoad:(UIWebView *)webView { | |
//Injecting the javaScript before the view starts to load.Employing Script Injection | |
[webUIView stringByEvaluatingJavaScriptFromString:JSHandler]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment