Skip to content

Instantly share code, notes, and snippets.

@mattrobmattrob
Created July 12, 2017 18:57
Show Gist options
  • Save mattrobmattrob/1bedec3d4e6ef80af8a6677512d79cab to your computer and use it in GitHub Desktop.
Save mattrobmattrob/1bedec3d4e6ef80af8a6677512d79cab to your computer and use it in GitHub Desktop.
Strava Apple Watch Blog - Location
- (void)requestWhenInUseAuthorization
{
[CLLocationManager requestWhenInUseAuthorization];
}
+ (BOOL)locationServicesAvailable
{
BOOL result = [CLLocationManager locationServicesEnabled] && [CLLocationManager authorizationStatus] >= kCLAuthorizationStatusAuthorizedAlways;
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment