iphone:如何在 MKAnnotation 视图中使用地图图钉上的索引号?
大家好, 我正在开发一种功能,可以在地图图钉上显示索引号并在 iPhone 的地图视图上设置图像,因此请告诉我开发此功能的任何链接或任何想法。
提前致谢。
Hello friends,
I am developing a functionality to display index number on map pin and set image on mapview of iPhone so please tell me any link or any idea to develop this functionality.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
上下文中的索引号是什么?您的代码显示的只是一个数字吗?如果是这样,您的问题是如何在地图上显示文本。使用地图叠加层。图像也一样。搜索 MKMapOverlay 并从那里开始。
What is an index number in the context? Is it just a digit that your code is displaying? If so your question is how to display text on a map. Use a map overlay. Same for images. Search for MKMapOverlay and go from there.
我已在注释视图中使用此方法作为索引号。
I have use this method for index number in annotation view.