ios - Location authorization status is 3 -


i using core location cheching location details.while checking authorization status ([cllocationmanager authorizationstatus]) got status 3.what means?

code:

nslog(@" [cllocationmanager authorizationstatus] %d" ,[cllocationmanager authorizationstatus]); 

output:

[cllocationmanager authorizationstatus] 3

from apple docs:

typedef enum {    kclauthorizationstatusnotdetermined  = 0,    kclauthorizationstatusrestricted ,    kclauthorizationstatusdenied ,    kclauthorizationstatusauthorized ,        <---- one!    kclauthorizationstatusauthorizedalways  = kclauthorizationstatusauthorized ,    kclauthorizationstatusauthorizedwheninuse  } clauthorizationstatus; 

kclauthorizationstatusauthorized

this app authorized use location services.

available in ios 2.0 , later.

deprecated in ios 8.0.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -