Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 coordinates remain intact. Can anyone shed some light on a possible solution?

like image 286
Oh Danny Boy Avatar asked Aug 26 '10 17:08

Oh Danny Boy


1 Answers

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.

like image 168
dc. Avatar answered Nov 05 '22 13:11

dc.