Is there any way to test the user location service is enabled or not without asking user?
What I want to do is to use the user location information if the service is already on, or not to use it if the service is off. I don't want to ask user to enabl开发者_StackOverflow社区e the service.
Is there any method to do this trick?
Thanks.
Yes, use locationServicesEnabled
if ([CLLocationManager locationServicesEnabled]) {
// do you stuff
}
精彩评论