As can be seen, the changes are fairly minor for this simple bit of code.
Your own code will likely be more complex depending on what your app utilises Core Location for, but you still can grab the information you need from accessing the last Object on the NSArray.
When i OS 6 launched last year, Apple deprecated a commonly used method from the CLLocation Manager Delegate protocol.
The method deprecated is – (void)location Manager:(CLLocation Manager *)manager did Update To Location:(CLLocation *)new Location from Location:(CLLocation *)old Location and is used to tell the delegate that a new location is available.
Then create a CLLocation Coordinate2D property named "user Location" to store the user's location data.