title: UILongPressGestureRecognizer not working
body: <p>I want to detect <code>UILongPressGestureRecognizer</code> for the <code>UIWebView</code> tap- and hold ..such that When I long press for almost 3 seconds then the below <code>if</code> condition should be <code>True</code> then only<br>
  <code>if (navigationType == UIWebViewNavigationTypeLinkClicked  &amp;&amp; longGesture )</code> but its not working....it continues in the loop for every time ..does not check for the longPressGesture time...</p>
  
  <p>even I have Tried with the condition..</p>
  
  <p><code>if (navigationType == UIWebViewNavigationTypeLinkClicked  &amp;&amp; longGesture.minimumPressDuration&gt; 3 )</code></p>
  
  <p>not working..where I am making mistake..</p>
  
  <pre><code>- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
  {
  
  
  UILongPressGestureRecognizer *longGesture = [[UILongPressGestureRecognizer alloc] init];
  
  longGesture.numberOfTapsRequired = 1;
  longGesture.numberOfTouchesRequired = 1;
  longGesture.minimumPressDuration = 3
  ;
  longGesture.delegate = self;
  // longGesture.allowableMovement = 50;
  
  [self.webView addGestureRecognizer:longGesture];
  
  
  
  if (navigationType == UIWebViewNavigationTypeLinkClicked  &amp;&amp; longGesture )
  {
      // Call your custom actionsheet and use the requestURL to do what you want :)
  
  
      UIActionSheet *sheet = [[UIActionSheet alloc]
                              initWithTitle:@" OPTIONS "
                              delegate:self
                              cancelButtonTitle:nil
                              destructiveButtonTitle:nil
                              otherButtonTitles:nil];
  
  
      [sheet addButtonWithTitle:@"Open"];
      [sheet addButtonWithTitle:@"Copy"];
  
      // Set cancel button index to the one we just added so that we know which one it is in delegate call
      // NB - This also causes this button to be shown with a black background
      sheet.cancelButtonIndex = sheet.numberOfButtons-1;
  
      [sheet showInView:webView];
      return NO;
    }
  </code></pre>