MKMap setting colour of user location annotation

I have been working from this Map example page

If I setup User Location I have a blue pulsing circle over my location - which is great.

If I now implement the GetViewForAnnotation() Delegate the colour of the user location changes to whatever the PinColor property is set to in that routine.

Note there are no other annotations added at this time, and the line

    if (annotation is MKUserLocation)
        return null;

is never true.

How can I trap the annotation for the user location so that I can either set a different colour for its pin to any other annotations, or, not set it at all.


Sign In or Register to comment.