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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -