Search code examples
swiftmkmapviewcore-location

Drop pin and get adress from where the user tap on map


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?


Solution

  • 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: