Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/111.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
检测iOS中的位置服务可用性丢失_Ios_Cllocationmanager_Nsnotificationcenter_Reachability_Location Services - Fatal编程技术网

检测iOS中的位置服务可用性丢失

检测iOS中的位置服务可用性丢失,ios,cllocationmanager,nsnotificationcenter,reachability,location-services,Ios,Cllocationmanager,Nsnotificationcenter,Reachability,Location Services,我正在查找这些信息,但没有找到:我知道您可以检查位置服务是否已启用,但一旦启用,是否可以侦听有关其可用性的通知 假设你已经为你的应用程序启用了它们,应用程序正在获取位置,但是你进入一个隧道,设备停止获取位置。可以通知应用程序这一点吗?位置服务是否依赖于设备的可达性状态?它不是在调用失败委托吗?有一个名为[locationManager:didFailWithError:]的委托方法,当无法检索位置时,该方法将触发。-voidlocationManager:CLLocationManager*ma

我正在查找这些信息,但没有找到:我知道您可以检查位置服务是否已启用,但一旦启用,是否可以侦听有关其可用性的通知


假设你已经为你的应用程序启用了它们,应用程序正在获取位置,但是你进入一个隧道,设备停止获取位置。可以通知应用程序这一点吗?位置服务是否依赖于设备的可达性状态?

它不是在调用失败委托吗?有一个名为[locationManager:didFailWithError:]的委托方法,当无法检索位置时,该方法将触发。-voidlocationManager:CLLocationManager*manager didChangeAuthorizationStatus:CLAuthorizationStatusstatus@PowHu阿斯法克,当位置服务被启用/禁用时,委托方法被调用,我正在寻找一种方法来知道它们何时可用或是否假设它们已启用。。。