开发者

How do I add new annotations to an MKAnnotationView

开发者 https://www.devze.com 2023-03-16 03:22 出处:网络
I finally found how to add pins to my image.I will use Mkannotationview and set its image property.B开发者_开发知识库ut I don\'t know how to add an (more) annotation(s) to it.To add annotations:

I finally found how to add pins to my image.I will use Mkannotationview and set its image property.B开发者_开发知识库ut I don't know how to add an (more) annotation(s) to it.


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
0

精彩评论

暂无评论...
验证码 换一张
取 消