0

I'm trying to get the address and showing an annotation where the user presses on my map.

I'm new to swift and don't know where to begin any ideas?

HDJEMAI
  • 9,436
  • 46
  • 67
  • 93
CFRJ
  • 157
  • 1
  • 12

1 Answers1

0

If you want to getAdress where the user taps that is a tricky part,

By following this link

OR

You can do with dragging by pin:

Step 1: Drop pin on current location. By following this

Step 2: By dragging pin you can get the current pin position address. By following this:

Salman Ghumsani
  • 3,647
  • 2
  • 21
  • 34
  • Hi at the moment I have it to zoom into the current location of the user and showing a blue dot where the user is at(something like step 1), I would like the pin to work like in apple maps where long press on a location to show a pin with the adress – CFRJ Jul 05 '17 at 12:07
  • The first link worked, thanks. Before I had made the gestureRecognizer inside the storyboard but I changed it to create programmatically with solved my issue :) – CFRJ Jul 05 '17 at 16:14
  • Happy to help :) – Salman Ghumsani Jul 05 '17 at 16:48