Created
October 25, 2013 23:41
-
-
Save priore/7163493 to your computer and use it in GitHub Desktop.
UIWebView asynchronous javascript call
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
| // | |
| // UIWebView asynchronous javascript call | |
| // | |
| // javascript function | |
| NSString *javascriptString = @"my_function();"; | |
| // allocated UIWebView | |
| [webView performSelectorOnMainThread:@selector(stringByEvaluatingJavaScriptFromString:) withObject:javascriptString waitUntilDone:NO] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment