A popular method used from the CLLocationManagerDelegate protocol is – (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation which allows your app to receive updates when any location changes are detected. The new location details were stored in the newLocation which is a CLLocation.
When iOS 6 launched, that method was deprecated with a suggestion to use a newer version called – (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations or in short locationManager:didUpdateLocations:.
This quick tutorial has been created to explain how to handle a deprecated method, what should be done about it and where you can find out more details about the changes. If you want to know how to use the newer locationManager:didUpdateLocations: method then take a look at the didUpdateLocations tutorial that explains how to work with the NSArray provided by that method.
 
 
 
On the web, you simply need to search for something like “corelocation class reference”. To find the official documentation, look for search results from the developer.apple.com domain name. Typing in the above search term shows the results (image to the left). The first result is the Framework reference which lists the Class References found within that framework. You can select this one, but if you want the corelocation class reference (called CLLocation and CLLocationManager) then you’ll need to select one of them on the next page.
 