gpt4 book ai didi

iphone - 强制核心位置使用 gps

转载 作者:搜寻专家 更新时间:2023-10-30 20:12:09 24 4
gpt4 key购买 nike

我在 apple 文档的某处读到我需要编辑 plist 以指示我的应用程序需要 GPS,但我找不到该文档了。我正在构建一个有点导航的应用程序,我想让 startUpdatingLocation 使用来自 GPS 的位置。我该怎么做?

最佳答案

这会将您的应用程序限制为只能在具有 GPS 的设备上运行。

Build-Time Configuration Details

gps 是您的 plist 中 UIRequiredDeviceCapabilities 的值。

gps

Include this key if your application requires (or specifically prohibits) the presence of GPS (or AGPS) hardware when tracking locations. (You should include this key only if you need the higher accuracy offered by GPS hardware.) If you include this key, you should also include the location-services key. You should require GPS only if your application needs location data more accurate than the cell or Wi-fi radios might otherwise provide.

关于iphone - 强制核心位置使用 gps,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5517781/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com