He configurado un UITAPGestureRecognizer en viewDidLoad de mi controlador de vista pero de alguna manera se dispara el método selector dos veces para un solo toque.UIGestureRecognizer ¿disparando dos veces?
UITapGestureRecognizer *g = [[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(openInMapsApp:)] autorelease];
[self.mapView addGestureRecognizer:g];
Mi método:
-(void)openInMapsApp:(UIGestureRecognizer*)g {
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@""
message:@"This will open this location in the Maps application. Continue?"
delegate:self
cancelButtonTitle:@"Cancel"
otherButtonTitles:@"OK",nil];
[alertView show];
[alertView release];
}
¿Es posible que esto suceda solo en algún momento? –