1 Replies - 3712 Views - Last Post: 21 August 2012 - 11:40 AM

#1 simagen  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 58
  • Joined: 10-November 10

Annotation Mapkit automation

Posted 20 August 2012 - 06:25 AM

I have my app running with 2 annotations for now.

They are hardcoded in with latitude and longitude.

How do I make it so that I let the user add annotations by dropping a pin where they wish and for my app to recognize this and save where they drop it?

I believe that this is accomplishable by having a btn that when pressed creates a new instance of the annotation pin with draggable properties listed as
MyPin.draggable = YES;


My question is: how do I code the class so that the new instance can be created when needed.. and as many as are needed. (5, 8, 29 etc.)

hope this makes sense, if not, then I am basically looking to create something similar to the drop pin feature in google maps on iphones.

This post has been edited by simagen: 20 August 2012 - 06:26 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Annotation Mapkit automation

#2 GWatt  Icon User is offline

  • member icon

Reputation: 278
  • View blog
  • Posts: 3,079
  • Joined: 01-December 05

Re: Annotation Mapkit automation

Posted 21 August 2012 - 11:40 AM

Assuming you have an annotation class and that it has a way to set the coordinates, I would simply create a new annotation and store it in a NSMutableArray.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1