简体   繁体   中英

Location authorization status is 3

I am using core location for cheching the location details.While checking the authorization status ([CLLocationManager authorizationStatus]) i got the status as 3.What does this means?

code:

NSLog(@" [CLLocationManager authorizationStatus] %d" ,[CLLocationManager authorizationStatus]);

Output:

[CLLocationManager authorizationStatus] 3

From the Apple Docs :

typedef enum {
   kCLAuthorizationStatusNotDetermined  = 0,
   kCLAuthorizationStatusRestricted ,
   kCLAuthorizationStatusDenied ,
   kCLAuthorizationStatusAuthorized ,        <---- THIS ONE!
   kCLAuthorizationStatusAuthorizedAlways  = kCLAuthorizationStatusAuthorized ,
   kCLAuthorizationStatusAuthorizedWhenInUse 
} CLAuthorizationStatus;

kCLAuthorizationStatusAuthorized

This app is authorized to use location services.

Available in iOS 2.0 and later.

Deprecated in iOS 8.0.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM