Thursday, July 12, 2012

Call native iPhone code from UIWebView


- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
   if ( [request.mainDocumentURL.relativePath isEqualToString:@"/ur function name in HTML page"] ){
return NO;
    }

No comments:

Post a Comment