MKMapView Clicking on pins won't call didSelectAnnotationView

前端 未结 1 828
说谎
说谎 2020-12-20 18:58

I am using a mapView and am trying to make a callout pop up when you click on a pin which is shown on the map.

The pins manage to be placed in the proper locations

相关标签:
1条回答
  • 2020-12-20 19:43

    If tapping on a pin doesn't show the callout even if canShowCallout is YES, then the annotation's title is probably nil or blank.

    If the title is blank, the callout won't show nor will the didSelectAnnotationView delegate method get called.

    0 讨论(0)
提交回复
热议问题