Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allowsBackgroundLocationUpdates on iOS 8.4 #14

Open
flames85 opened this issue Jul 6, 2016 · 1 comment
Open

allowsBackgroundLocationUpdates on iOS 8.4 #14

flames85 opened this issue Jul 6, 2016 · 1 comment

Comments

@flames85
Copy link

flames85 commented Jul 6, 2016

_locationManager.allowsBackgroundLocationUpdates = YES; will crash on ios8.4.
so I modify to
if([_locationManager respondsToSelector:@selector(setAllowsBackgroundLocationUpdates:)]) {
// We now have iOS9 and the right capabilities to set this:
[_locationManager setAllowsBackgroundLocationUpdates:YES];
}

@liuyan3176
Copy link

liuyan3176 commented Jul 14, 2016

Thanks a lot~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants