Created
July 12, 2017 18:57
-
-
Save mattrobmattrob/1bedec3d4e6ef80af8a6677512d79cab to your computer and use it in GitHub Desktop.
Strava Apple Watch Blog - Location
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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