I'm developing an app to get the current location either when cellular data is off or when WiFi is not connected.
I used the following code, but I got only latitude and longitude not location with address.
so I need guidance to implement it.
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation
{
NSLog(@"didUpdateToLocation: %@", newLocation);
CLLocation *currentLocation1 = newLocation;
if (currentLocation1 != nil)
{
strLet=[NSString stringWithFormat:@"%f",currentLocation1.coordinate.latitude];
strLong=[NSString stringWithFormat:@"%f",currentLocation1.coordinate.longitude];
NSLog(@"%f",currentLocation1.coordinate.longitude);
NSLog(@"%f",currentLocation1.coordinate.latitude);
}
}
Thanks.