在 iPhone 模拟器中测试当前位置

发布于 2024-09-26 19:31:49 字数 125 浏览 0 评论 0原文

我已经将 myAnnotationview custiomed api 集成到我的项目中。并且我在上面添加了一些地址。我想从 iphone 模拟器测试它。这可能吗?我怎样才能实现它?我需要在模拟器中打开任何东西吗?

谢谢

I have integrated the myAnnotationview custiomed api in to my project.And i have added some address on it.I want to test it from iphone simulator.Is it possible?How can i achieve it?Do i need to ON anything in Simulator?

Thanks

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

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

发布评论

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

评论(1

肤浅与狂妄 2024-10-03 19:31:49

我不确定问题是什么或您希望实现什么目标。您可以使用 CLLocationCooperative2DMake( , ); 将自定义注释添加到指定坐标的特定位置。

如果您对当前地址感兴趣,请使用 CLLocationManager 来获取特定位置。在 MKMapView 模拟器上,您当前的位置始终是加利福尼亚州圣何塞的无限循环。

I'm not sure what the problem is or what you hope to achieve. You can add a custom annotation to a specific location specifying the coordinate using CLLocationCoordinate2DMake( , );

If you are interested in your current address, use CLLocationManager for the specific location. On the simulator on a MKMapView your current location is always Infinite Loop at San Jose, California.

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