title: How to get the image from uiwebview in ios
body: <p>here i loaded the content as well as the images in the webview, i want to take the image from the webview and load it into the imageview.</p>
  
  <p>the url of the image is received but the image is not loaded it in to the imageview</p>
  
  <p>here i use the code for taking the image from webview is </p>
  
  <pre><code>-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {
      //Touch gestures below top bar should not make the page turn.
      //EDITED Check for only Tap here instead.
      if ([gestureRecognizer isKindOfClass:[UITapGestureRecognizer class]]) {
          CGPoint touchPoint = [touch locationInView:self.view];
  
          NSUserDefaults * userDefaults = [NSUserDefaults standardUserDefaults];
          bool pageFlag = [userDefaults boolForKey:@"pageDirectionRTLFlag"];
          NSLog(@"pageFlag tapbtnRight %d", pageFlag);
  
          if(self.interfaceOrientation==UIInterfaceOrientationPortrait||self.interfaceOrientation==UIInterfaceOrientationPortraitUpsideDown) {
    NSString *imgURL = [NSString stringWithFormat:@"document.elementFromPoint(%f, %f).src", touchPoint.x, touchPoint.y];
              NSString *urlToSave = [webView stringByEvaluatingJavaScriptFromString:imgURL];
              NSLog(@"urlToSave :%@",urlToSave);
  }
  }
  </code></pre>