UILongPressGesture in iphone sdk
<pre><code> UILongPressGestureRecognizer *longPressOnUndoGesture = [[UILongPressGestureRecognizer alloc] 
    initWithTarget:self 
    action:@selector(handleLongPressOnUndoGesture:)];
    [longPressOnUndoGesture setMinimumPressDuration:2.0];
    [longPressOnUndoGesture release];
</code></pre>

<p>i have the above code to deasctivate the autoscroll timer in my applicationthis is the function for this.</p>

<pre><code>-(void) handleLongPressOnUndoGesture:(UILongPressGestureRecognizer*)recognizer {
    [autoscrollTimer invalidate];

}
</code></pre>

<p>but when i taptohold for 2 seconds it wont stop the timer.is there any error in my code for gesture.
Thanks in advance.</p>
