Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MKMapView annotation is not selectable second time

Tags:

On my iPad app I am using iOS map to display few points using annotation. I want to display custom callout too when an annotation is been selected. I am using UIPopoverController to show callout. However this works only when first time tap on annotation. If I want to see the callout on same annotation, I have to select different annotation first and then tap on previous annotation.

Basically this delegate method is not firing second time.

-(void)mapView:(MKMapView *)mapView 
    didSelectAnnotationView:(MKAnnotationView *)view

I am using storyboard and delegate is set on there. This is how I set the annotations.

[self.mapView addAnnotations:self.placemarksArray] 

Can anyone please let me know the reason for above issue? Thanks