初始化location Manager:
self.locationManager = [[[CLLocationManager alloc] init] autorelease];
self.locationManager.delegate = self;
[self.locationManager startMonitoringSignificantLocationChanges];
在ios6中,创建之后,当前的location就会调用delegates
- (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations
但是在ios5中测试的时候,delegates就没有被调用。
为什么?
谢谢