1

I have searched a bit on google, but didn't really found an answer to my question. I want to create a pin with a different color, e.g. yellow or orange.

How should I do this? It seems that it's not possible to create one sending a UIColor to it. Should I design them myself and somehow change the pin to an own image?

Best regards, Paul Peelen

Paul Peelen
  • 10,073
  • 15
  • 85
  • 168

2 Answers2

1

Yes you have to do it yourself with your custom MKAnnotationView, I posted some customs colors I did on my own there :

MKPinAnnotationView: Are there more than three colors available?

Community
  • 1
  • 1
yonel
  • 7,855
  • 2
  • 44
  • 51
0

The 3 pin "colors" are actually series of different images (look in your iPhoneSimulator3.0.sdk/System/Library/Frameworks/MapKit.framework), so you can't create one by sending a UIColor.

You need to make a custom MKAnnotationView...

kennytm
  • 510,854
  • 105
  • 1,084
  • 1,005