Set address string with reverseGeocodeLocation: and return from method
问题 I'm try to localize a start and end point to an address string, so that I can store it into NSUserDefaults . The problem is that the method continues executing and does not set my variable. NSLog(@"Begin"); __block NSString *returnAddress = @""; [self.geoCoder reverseGeocodeLocation:self.locManager.location completionHandler:^(NSArray *placemarks, NSError *error) { if(error){ NSLog(@"%@", [error localizedDescription]); } CLPlacemark *placemark = [placemarks lastObject]; startAddressString =