Hi,
So I am using CLLocation and CLLocation manager and the method locationManager:didUpdateToLocation:fromLocation isn't running. In my viewDidLoad I placed the following:
In the locationManager:didUpdateToLocation:fromLocation i placed a NSLog. The info that I put into the NSLog isn't showing up in the debugger, so I know that the
locationManager:didUpdateToLocation:fromLocation method isn't even running.
Please try to help me and tell me what I should do to fix.
UPDATE: The problem seems to be that the locationManager:didUpdateToLocation:fromLocation method is returning (null).
Thanks,
RMK-JACOB
So I am using CLLocation and CLLocation manager and the method locationManager:didUpdateToLocation:fromLocation isn't running. In my viewDidLoad I placed the following:
Code:
theLocation = [[CLLocationManager alloc] init];
[theLocation setDelegate: self];
[theLocation setDesiredAccuracy:kCLLocationAccuracyBest];
theLocation.distanceFilter = kCLDistanceFilterNone;
[theLocation startUpdatingLocation];
In the locationManager:didUpdateToLocation:fromLocation i placed a NSLog. The info that I put into the NSLog isn't showing up in the debugger, so I know that the
locationManager:didUpdateToLocation:fromLocation method isn't even running.
Please try to help me and tell me what I should do to fix.
UPDATE: The problem seems to be that the locationManager:didUpdateToLocation:fromLocation method is returning (null).
Thanks,
RMK-JACOB
Last edited: