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

Untitled

By: a guest on Jul 6th, 2012  |  syntax: None  |  size: 0.63 KB  |  hits: 9  |  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. Static Analyser Warning on returned doubles?
  2. @property (nonatomic, retain) CLLocation *lastGoodLocation;
  3.  
  4. @synthesize lastGoodLocation;
  5.        
  6. // CHECK FOR BEST LOCATION
  7. if(lastGoodLocation == nil || [newLocation horizontalAccuracy] < [lastGoodLocation horizontalAccuracy]) {
  8.     NSLog(@"NEWBEST: %0.0fm (%@)", [newLocation horizontalAccuracy], [newLocation timestamp]);
  9.     [self setLastGoodLocation:newLocation];
  10.  
  11.     // DESIRED ACCURACY & GEOCODE
  12.     if([lastGoodLocation horizontalAccuracy] <= DESIREDACCURACY) {
  13.        
  14. // DESIRED ACCURACY & GEOCODE
  15. if (lastGoodLocation != nil && ([lastGoodLocation horizontalAccuracy] <= DESIREDACCURACY))