如何更改 Objective-C MapKit 中的模拟器用户位置?

发布于 2024-09-10 01:38:58 字数 35 浏览 1 评论 0原文

我将在模拟器中将位置更新硬编码到我的真实位置......

I will the location update be hardcoded in simulator to my real position...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

毁梦 2024-09-17 01:38:58

运行 4.0 SDK 及更高版本的模拟器使用其主机平台上的内置地理定位来提供其运行的计算机的实际当前位置。换句话说,它不再只是愚蠢地表示它处于 1 个无限循环,它会告诉您实际位置,前提是您的计算机会这样做。

所以它就像升级你的 Xcode 安装一样简单。

The simulator running the 4.0 SDK and later uses built-in geolocation on its host platform to provide the actual current location of the computer it's running on. In other words, it doesn't just stupidly say it's at 1 Infinite Loop anymore, it tell you actually where it's at, provided your computer will do that.

So it could be as simple as upgrading your Xcode installation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文