CLAuthorizationStatus status = [CLLocationManager authorizationStatus];
if (kCLAuthorizationStatusDenied == status || kCLAuthorizationStatusRestricted == status) {
// [NSLOG:@"请打开您的位置服务!"];
NSLog(@"请打开您的位置服务!");
}
CLAuthorizationStatus status = [CLLocationManager authorizationStatus];
if (kCLAuthorizationStatusDenied == status || kCLAuthorizationStatusRestricted == status) {
// [NSLOG:@"请打开您的位置服务!"];
NSLog(@"请打开您的位置服务!");
}
本文标题:iOS开发中怎样判断是否开启定位功能
本文链接:https://www.haomeiwen.com/subject/xiygrttx.html
网友评论