Skip to content

Instantly share code, notes, and snippets.

@pbrewczynski
Created February 23, 2014 23:02
Show Gist options
  • Save pbrewczynski/9178598 to your computer and use it in GitHub Desktop.
Save pbrewczynski/9178598 to your computer and use it in GitHub Desktop.
window.location = yourscheme://callfunction/parameter1/parameter2?parameter3=value
- (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType {
NSURL *URL = [request URL];
if ([[URL scheme] isEqualToString:@"yourscheme"]) {
// parse the rest of the URL object and execute functions
}
}
// source http://stackoverflow.com/questions/9473582/ios-javascript-bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment