Tapping om MKAnnotationView should show my custom view

264 views Asked by At

Tapping on MKAnnotationView shouldn't show the callout view, instead it should show my custom view covering 3/4 of the iPhone's screen. I'm hiding the native callout view by canShowCalloutView = NO, but how to detect tap on that MKAnnotationView and then present my custom pop-up view? I guess i should implement didSelectAnnotationView and then show my custom view?

1

There are 1 answers

3
sajgan2015 On

You have to set canShowCalloutView to Yes and annotationView.leftCalloutAccessoryView = yourView;

Please refer below link to understand how to set custom callout view:

Creating Custom Call out View