Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 30th, 2012  |  syntax: None  |  size: 0.61 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. I can't understand what this statement means. [newLocation.timestamp timeIntervalSince1970] < [NSDate timeIntervalSinceReferenceDate] - 60
  2. -(void) locationManager:(CLLocationManager *) manager
  3.     didUpdateToLocation:(CLLocation *)newLocation
  4.            fromLocation:(CLLocation *)oldLocation
  5. {
  6.     if ([newLocation.timestamp timeIntervalSince1970] < [NSDate timeIntervalSinceReferenceDate] - 60)
  7.     return;
  8. }
  9.        
  10. if ([newLocation.timestamp timeIntervalSince1970] < [NSDate timeIntervalSince1970] - 60)
  11.        
  12. if ([newLocation.timestamp timeIntervalSinceReferenceDate] < [NSDate timeIntervalSinceReferenceDate] - 60)