开发者

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.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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜