I my iOS i am using CLLocationManager
, but i am not sure which delegate method to use to get the location updates. There are two methods
- (void)locationManager:(CLLocationManager *)manager
didUpdateToLocation:(CLLocation *)newLocation
fromLocation:(CLLocation *)oldLocation
and
- (void)locationManager:(CLLocationManager *)manager
didUpdateLocations:(NSArray *)locations
I know that i should be using the second one because the first one is deprecated but then i have set the deployment target for my app to be 6.0. So which one i should use? In the image attached , just beside this method
(void)locationManager:(CLLocationManager *)manager
didUpdateToLocation:(CLLocation *)newLocation
fromLocation:(CLLocation *)oldLocation
it says 6.0
. So what does it mean its deprecated in iOS 6.0
or its available till 6.0. My guess is that, i should be using
- (void)locationManager:(CLLocationManager *)manager
didUpdateLocations:(NSArray *)locations
and it should be fine. Any suggestions?