A quick tutorial today. I was recently asked how to get a timestamp from a CLLocation object, particularly when the -(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations method was used in the CLLocationManagerDelegate protocol. As with most programming solutions, there’s always more than one way to accomplish this. Today, I’ll show you one of the ways it can be done.
Assuming you have your CLLocationManagerDelegate all configured correctly and that you also have your CLLocationManager, this is one way you can get the timestamp from the CLLocation update. [Read more…]