Skip to content
Permalink
Browse files
corrected KCLAuthorizationStatus error, changed to always removed use…
…r of [manager locationServicesEnabled]. Must return [CLLocationManager locationServicesEnabled] or 'none'
  • Loading branch information
sterlingann authored and purplecabbage committed Nov 5, 2016
1 parent f9f7a23 commit 1ff3a9e3d02cc49ae9477d9eb54b8cdd031df4f5
Showing 1 changed file with 1 addition and 3 deletions.
@@ -73,7 +73,7 @@ - (BOOL)isAuthorized
return (authStatus == kCLAuthorizationStatusAuthorizedWhenInUse) || (authStatus == kCLAuthorizationStatusAuthorizedAlways) || (authStatus == kCLAuthorizationStatusNotDetermined);
}
#endif
return (authStatus == kCLAuthorizationStatusAuthorized) || (authStatus == kCLAuthorizationStatusNotDetermined);
return (authStatus == kCLAuthorizationStatusAuthorizedAlways) || (authStatus == kCLAuthorizationStatusNotDetermined);
}

// by default, assume YES (for iOS < 4.2)
@@ -87,8 +87,6 @@ - (BOOL)isLocationServicesEnabled

if (locationServicesEnabledClassPropertyAvailable) { // iOS 4.x
return [CLLocationManager locationServicesEnabled];
} else if (locationServicesEnabledInstancePropertyAvailable) { // iOS 2.x, iOS 3.x
return [(id)self.locationManager locationServicesEnabled];
} else {
return NO;
}

0 comments on commit 1ff3a9e

Please sign in to comment.