title: Trigger objective C method from javascript using JavaScriptCore in iOS 7 in ViewControllers
body: <p>I am loading a url in the webview which has below HTML and javascript function call. Now I am looking into when user touches submit button in webview it should call any method in viewController. Webview should load url(webview delegate) is one approach but is there any new way to get know when javascript function is called by webview should inform viewcontroller or trigger any method in view controller.</p>
  
  <p>I am not looking for this solution this we need to   </p>
  
  <pre><code> - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType{
  
      NSLog(@"passed data from web view : %@",[[request URL] query]);
  
      if([[[request URL] query] isEqualToString:@"clickedOnLineNo"])
      {
  //Do your action here
  
      }
  </code></pre>
  
  <p>We have to navigate to a fake URL from your javascript method like,</p>
  
  <pre><code>window.location = "someLink://yourApp/form_Submitted:param1:param2:param3";  
  </code></pre>
  
  <p>on a button click or your required action.</p>
  
  <p>But is there any new possibility from JavaScriptCore to achieve the same.</p>