2012-09-14 36 views
3

從文檔locationManager:didFailWithError:的LocationManager:didFailWithError:不叫,如果用戶位置服務關閉

If the user denies your application’s use of the location service, this method reports a kCLErrorDenied error. Upon receiving such an error, you should stop the location service.

當用戶按下「不允許」的問題它的工作原理「MyApp的想用你的當前位置「,所以你可以管理這種可能性。

但沒有發生,當用戶按下「取消」的問題是「打開定位服務,讓‘MyApp的’來確定你的位置」(如位置服務被關閉,其自帶的消息。

是否有有什麼樣的回調方式?

回答

6

使用[CLLocationManager locationServicesEnabled]這個特殊情況

相關問題