Location service iOS alert call back

后端 未结 3 713
迷失自我
迷失自我 2020-12-17 23:56

When we use location services in an application, we receive an iOS alert saying the application is trying to use the current location -- Allow/Don\'t Allow.

Do we h

3条回答
  •  醉话见心
    2020-12-18 00:15

    You don't have direct access to that alert.

    If the user presses "Don't Allow", or if the app otherwise doesn't have permission to use location services then CLLocationManager will call locationManager:didFailWithError: on its delegate. The error domain will be kCLErrorDomain and the error code will be kCLErrorDenied.

提交回复
热议问题