iphone - How to detect "would like to use your current location" choose action? -
as know cllocationmanager
can used current location permission of alert: "myappname" use current location" | "don't allow" | "allow". how detect choose action after user choose "don't allow" or "allow"? appreciated!
-(void)locationmanager:(cllocationmanager *)manager didchangeauthorizationstatus: (clauthorizationstatus)status { if (status == kclauthorizationstatusdenied) { // don't allow } else if (status == kclauthorizationstatusauthorized) { //allow } }
implement cllocationmanagerdelegate
, use delegate method
Comments
Post a Comment