Skip to content

Instantly share code, notes, and snippets.

@priore
Created October 25, 2013 23:41
Show Gist options
  • Save priore/7163493 to your computer and use it in GitHub Desktop.
Save priore/7163493 to your computer and use it in GitHub Desktop.
UIWebView asynchronous javascript call
//
// 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