I\'ve got a mapkit app that places annotations on the map, when you press them, it shows the callout with the title attribute.
This works fine, but the user cannot c
Anna explain good.Also I want to explain with exactly code. You can do like this
UITapGestureRecognizer *tapMap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(closeCallout:)];
[self.mapView addGestureRecognizer:tapMap];
-(void) closeCallout:(UIGestureRecognizer*) recognizer
{
for (id ann in mapView.selectedAnnotations)
{
[mapView deselectAnnotation:ann animated:NO];
}
}