title: Long button press in IOS
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/9389923/uibutton-long-press-with-finger-stationary">UIButton long press with finger stationary</a>  </p>
  </blockquote>
  
  
  
  <p>I have created 100 buttons from code. Now I want to react on long button press. 
  For each buttons I call enxt code: </p>
  
  <pre><code>UILongPressGestureRecognizer *longPressGesture = [[[UILongPressGestureRecognizer alloc]
                                                    initWithTarget:self
                                                    action:@selector(longPress:)]
                                                    autorelease];
  [longPressGesture setMinimumPressDuration:1];
  [button addGestureRecognizer:longPressGesture];
  [self.view addSubview:button];
  </code></pre>
  
  <p>But <code>longPress</code> method was not called.</p>
  
  <p>Does anybody know why?</p>