How to find your current location with CoreLocation
问题 I need to find my current location with CoreLocation , I tried multiple methods but so far my CLLocationManager has only returned 0\'s.. ( 0.000.00.000 ). Here\'s my code ( updated to work ): Imports : #import <CoreLocation/CoreLocation.h> Declared : IBOutlet CLLocationManager *locationManager; IBOutlet UILabel *latLabel; IBOutlet UILabel *longLabel; Functions : - (void)getLocation { //Called when needed latLabel.text = [NSString stringWithFormat:@\"%f\", locationManager.location.coordinate