0

I am experimenting with apple mapkit apple mapkit guide, and i noticed that to show the user location (blue dot), it suffice to set show userlocation to true in storyboard. I am testing on simulator (trying iphone 6 and 7) and i emulate locations using gpx files.

My problem is no blue dot appears on screen. What can be wrong ?

mediumkuriboh
  • 57
  • 1
  • 10
  • Possible duplicate of [How to get current location using CLLocationManager in iOS](http://stackoverflow.com/questions/21554127/how-to-get-current-location-using-cllocationmanager-in-ios) – slonkar Oct 06 '16 at 06:55
  • I am using the mapview itslelf, wish has its own locationmanager. As i understand it should handle the location updates and display of current location. – mediumkuriboh Oct 06 '16 at 07:23

1 Answers1

0

Are you actually starting up the location manager and updating the location?

self.locationManager = [[CLLocationManager alloc] init];
self.locationManager.delegate = self;
[self.locationManager startUpdatingLocation];

And don't forget to ask the user for permission as well.

cbiggin
  • 1,942
  • 1
  • 17
  • 18
  • it appears asking permissions and showing the location are 2 different things. so one should show location on map in case permission given. – mediumkuriboh Nov 08 '16 at 21:51