Mikayil Abdullayev
Mikayil Abdullayev

Reputation: 12376

How do I add new annotations to an MKAnnotationView

I finally found how to add pins to my image.I will use Mkannotationview and set its image property.But I don't know how to add an (more) annotation(s) to it.

Upvotes: 0

Views: 97

Answers (1)

Caleb
Caleb

Reputation: 125007

To add annotations:

  • get the array of annotations from the map view
  • make a mutable copy
  • add any new annotations
  • set the annotations for the map view to the modified array

Upvotes: 1

Related Questions