How to stop updating location once I get current location?
问题 I'm using Parse and with geoPointForCurrentLocationInBackground I can stop updating once a location is received without having to manually stop it. How do I stop updating location immediately right after I receive location using CLLocationManager? Edit I know [self.locationManager stopUpdatingLocation]; stops it. What I'm really asking is, how do I know I've received location for the first time then stop it immediately? 回答1: After getting your location, use this method: [self.locationManager