I am using core location my development target is 5.0 below is my code to start updating
self.locationManager = [[CLLocationManager alloc]init];
[self.locationManager setDelegate:self];
[self.locationManager startUpdatingLocation];
Below is the delegate method
- (void)locationManager:(CLLocationManager *)manager
didUpdateToLocation:(CLLocation *)newLocation
fromLocation:(CLLocation *)oldLocation
{
// Do Something Here
}
It called in iOS 5.0 and 6.0 but got deprecated in iOS 7.0 onward So for iOS 7.0 and above I have to used below
- (void)locationManager:(CLLocationManager *)manager
didUpdateLocations:(NSArray *)locations
{
// Do Something Here
}
My question is would I have to manage two separate delegate method for below 7.0 and above 7.0 iOS?
If not than please explained me in detail.