简体   繁体   中英

iPhone Location Services is turned off, but the application can still get the location?

I turned off the Location Services on my iPhone, because I don't want the app to determine my location. But, when I run the app it somehow gets my location! Any ideas?

As the docs suggests here

Locations

An array of CLLocation objects containing the location data. This array always contains at least one object representing the current location. If update events were deferred or if multiple events arrived before they could be delivered, the array may contain additional entries. The objects in the array are organized in the order in which they occurred. Therefore, the most recent location update is at the end of the array.

So the location manager always shows some value.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM