1
位置管理器didUpdateLocations沒有被調用。位置管理器的delagate方法沒有被調用
self.locationManager = [[CLLocationManager alloc] init];
self.locationManager.delegate = self;
[self.locationManager startUpdatingLocation];
for call back i am using this delegate method
- (void)locationManager:(CLLocationManager)manager didUpdateLocations:(NSArray)locations
{
NSLog(@"%@", [locations lastObject]);
}
您是否導入了位置的框架? –