iPhone地图查看当前位置
我能够在地图视图上显示当前位置。它显示圆形蓝色圆圈。当我单击圆圈时,它会显示“当前位置”。 我想将用户当前位置显示为绿色图钉。单击图钉时,我想显示“我的位置”注释。怎么做呢。 请建议我该怎么做。
I'm able to show current location on mapview. It shows round blue color circle. When I click on the circle, it shows "Current Location".
I want to show users current location as green pin. on click of pin, i want to show "My Location" annotation. How to do it.
Please suggest me how to do it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这样做是一个坏主意。蓝点和相关动画是所有 MapKit 应用程序都遵守的约定。您的用户也可能会搬家。引脚与固定位置相关联。拿着手机的人并不是一个固定点。
请认真考虑 MapKit 标准和 Apple HIG,它们是为了帮助您的用户理解并享受您的应用程序。
Doing so is a bad idea. The blue dot and associated animation is a convention that is adhered to by all MapKit apps. Your user might be moving too. A pin is associated with a fixed location. Someone holding a phone is not a fixed point.
Please really think about the MapKit standards and Apple HIG they are there to help your users understand and enjoy your app.