如何更改 Objective-C MapKit 中的模拟器用户位置?
我将在模拟器中将位置更新硬编码到我的真实位置......
I will the location update be hardcoded in simulator to my real position...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
运行 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.