I have a UIView custom class and the object created by this class has a long gesture recognizer, added as this
UILongPressGestureRecognizer *tapAndHold =
[[UILongPressGestureRecognizer alloc] initWithTarget:self
action:@selector(doStuff:)];
[tapAndHold setDelegate:self];
[tapAndHold setCancelsTouchesInView:NO];
[tapAndHold setDelaysTouchesEnded:NO];
[self addGestureRecognizer:tapAndHold];
[tapAndHold release];
the problem is that for each long tap on the object the doStuff method runs two times in sequence.
am I missing something? ThANKS