
Untitled
By: a guest on
Jul 6th, 2012 | syntax:
None | size: 0.63 KB | hits: 9 | expires: Never
Static Analyser Warning on returned doubles?
@property (nonatomic, retain) CLLocation *lastGoodLocation;
@synthesize lastGoodLocation;
// CHECK FOR BEST LOCATION
if(lastGoodLocation == nil || [newLocation horizontalAccuracy] < [lastGoodLocation horizontalAccuracy]) {
NSLog(@"NEWBEST: %0.0fm (%@)", [newLocation horizontalAccuracy], [newLocation timestamp]);
[self setLastGoodLocation:newLocation];
// DESIRED ACCURACY & GEOCODE
if([lastGoodLocation horizontalAccuracy] <= DESIREDACCURACY) {
// DESIRED ACCURACY & GEOCODE
if (lastGoodLocation != nil && ([lastGoodLocation horizontalAccuracy] <= DESIREDACCURACY))