I'm trying to get my current location, but the break point in didUpdateLocations is never being called.
LocationManager:
locationManager = [[CLLocationManager alloc] init];
[locationManager setDelegate:self];
[locationManager setDesiredAccuracy:kCLLocationAccuracyBest];
[locationManager setDesiredAccuracy:kCLDistanceFilterNone];
[locationManager startUpdatingLocation];
Delegate method:
- (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations;
I confirmed that location services and enabled and authorized.
Why is the locationManager delegate method not being called like it should?
[[CLLocationManager alloc] init];
. Here is the link that helped me – nupac[locationManager setDesiredAccuracy:kCLDistanceFilterNone];
as you set setDesiredAccuracy twice, and make locationManager a property – Julian