Skip to content

Instantly share code, notes, and snippets.

@PDMackinnon
Created February 3, 2014 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PDMackinnon/8786278 to your computer and use it in GitHub Desktop.
Save PDMackinnon/8786278 to your computer and use it in GitHub Desktop.
call Javascript from ObjectiveC - call to your UIWebView
NSString *jsreturn = [self.mainWebView stringByEvaluatingJavaScriptFromString:@"<#script#>"];
NSLog(@"jsreturn = %@",jsreturn);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment