Comment atteindre le toucher même pour UIImageView
dans appDelegate
?
Réponses:
4 pour la réponse № 1Vous pouvez utiliser:
UITapGestureRecognizer *tgr = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(anyMethod)];
[imageView addGestureRecognizer:tgr];
[tgr release];
Avant de faire cela, activez l’interaction utilisateur de UIimageView.
1 pour la réponse № 2
Cela pourrait vous être utile:
http://mithin.in/2009/08/26/detecting-taps-and-events-on-uiwebview-the-right-way/