Search code examples
iosmkmapviewmapkitmkannotationmkannotationview

What are the standard Annotations provided by the Apple iOS MapKit?


In looking through all of the Apple MapKit documentation, the only "standard" annotation Views I could find were the following:

Are there any other standard Annotation Views that Apple provides? Do they provide one with just a dot? Or a Dot with text?


Solution

  • Those are the only two provided by Apple. You can, of course, create your own. See the documentation:

    Defining a Custom Annotation View

    If a static image is insufficient for representing your annotation, you can subclass MKAnnotationView and draw content dynamically in one of the following two ways:

    • Continue to use the image property of MKAnnotationView, but change the image at regular intervals.
    • Override the annotation view’s drawRect: method and draw your content dynamically every time.

    ...