title: Html form in UIwebview send back to ios?
body: <p>i am trying to pass information between an HTML form and ios i tryed javascrip but it isn't working?</p>
  
  <pre><code>        // Init Web View
      UIWebView *webView;
      webView = [[UIWebView alloc] initWithFrame:boundsRect];
      webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
      webView.scalesPageToFit = YES;
      webView.contentMode = UIViewContentModeCenter;
      webView.multipleTouchEnabled = NO;
      webView.userInteractionEnabled = YES;
      [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:url]]];
      [self addSubview:webView];
      NSString *testArrayString = [webView stringByEvaluatingJavaScriptFromString:@"testString"];
      NSArray *testArray = [testArrayString componentsSeparatedByString:@"#"];
      NSLog(@"%@", testArray);
      [webView release];
      return self;
  </code></pre>
  
  <p>any ideas?</p>
  
  <p>----EDIT----</p>
  
  <p>Ok guys if u only want to make data from a form pass to a ios app you only do this to your webview</p>
  
  <pre><code>[webView setDelegate:self];
  </code></pre>
  
  <p>Then you can implement this methods in your program marks </p>
  
  <p>like:</p>
  
  <pre><code>    -(void)webViewDidFinishLoad:(UIWebView *) webView {
  
  //implement code to do here
  
  }
  </code></pre>
  
  <p>if you want to capture a for just do a webview shouldStartWithRequest like this:</p>
  
  <pre><code>    -(BOOL)webView:(UIwebView *) webView shouStartWithRequest:(NSURLRequest *)request  navigationType:(UIWebViewNavigationType)navigation{
  
  
  //implement code to do afeter the user click the form  don't forget to return YES or NO because it is a BOOL 
  
  }
  </code></pre>
  
  <p>that is how i solve it any question please do tell me i try my best to help </p>