Created
August 20, 2014 10:02
-
-
Save thoretton-edwin/dff553240a13e927e62a to your computer and use it in GitHub Desktop.
iOS 8 location manager diff
This file contains hidden or 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
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) | |
{ | |
[locationManager requestAlwaysAuthorization]; | |
} | |
// auth needed before start method | |
[locationManager startUpdatingLocation]; | |
// in plist file : (Boolean value) NSLocationAlwaysUsageDescription : YES |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment