iPhone Core Location: Custom pin image disappears when map type changes

后端 未结 1 1774
隐瞒了意图╮
隐瞒了意图╮ 2021-01-05 21:24

I have a segmented controller which sits on a MKMapView. When I change MKMapType, the image of my custom pins revert to the default red. The title and subtitle, along with c

相关标签:
1条回答
  • 2021-01-05 21:43

    I had a similar problem a while ago.

    Why does a custom MKMapView annotation image disappear on touch?

    Make sure you're using MKAnnotationView instead of MKPinAnnotationView everywhere in your viewForAnnotation method.

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