0

How to change MKMapView user location blue dot to an image and then image to blue dot?

Example- Suppose map has loaded with blue dot and I have a UISwitch (disabled) on that page initially. When user will enable switch I want to change blue dot to image and again if user will disable UISwitch then I want to change image to blue dot without loading map again.

Dheeraj D
  • 4,386
  • 4
  • 20
  • 34
Asif Raza
  • 836
  • 12
  • 29
  • 1
    http://stackoverflow.com/questions/6293432/how-to-change-mkmapviews-user-location-blue-dot-to-an-image-of-choice – Dheeraj D Dec 25 '16 at 07:51
  • Thanks for the suggestion Dheeraj but it is not fulfil my requirement. please read above example description carefully. – Asif Raza Dec 25 '16 at 09:19

1 Answers1

1

to change the icon / or to show the blue Dot (the default) refer to to: How to change MKMapView's user-location blue dot to an image of choice?

to TOGGLE the image/dot to be used for the location, call map view.showUserLocation = NO; view.showUserLocation = YES; to make the view refresh the 'dot annotation view'

Community
  • 1
  • 1
Daij-Djan
  • 49,552
  • 17
  • 113
  • 135