j'ai une question concernant UILongPressGestureRecognizer, je dois ajouter geste comme ci-dessous du codequestion UILongPressGestureRecognizer
**ViewDidLoad**
UILongPressGestureRecognizer *_longRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(ICN_TRASH_Click:)];
NSArray *recognizerArray = [[NSArray alloc] initWithObjects:_longRecognizer, nil];
[[self.view viewWithTag:2001] setGestureRecognizers:recognizerArray];
OnClick
if ([sender isKindOfClass:[UILongPressGestureRecognizer class]])
{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Warning" message:@"Are you sure delete all message ?" delegate:self cancelButtonTitle:@"Yes" otherButtonTitles:@"No",nil];
[alert show];
[alert release];
}
Nous Appuyez longuement sur le bouton deux fois appel alertview, ce que quelqu'un a une idée, pourquoi faire face à ce problème .