如何在我的 Pin 注释上显示标题并使其可单击以执行某些操作?
在我的 MapView 中,我在某些位置放置了图钉,现在我想在这些图钉注释上显示一些标题并使其可单击,以便单击时我可以推送另一个视图。 请帮忙!!!!
In my MapView i have pin dropped on certain locations and now i want to display some title on these pin annotation and make it clickable so that on click i can push another view.
Please help !!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是代码片段:
使用此方法的自定义注释视图
点击按钮时调用的委托方法
This is the code snippet:
Custom Annotation View using this method
Delegate method which get's called when you tap on the button
Apple 文档中提供了所有这些问题的答案,我建议您仔细阅读它们。然而,要进行调出,您所需要做的就是设置标题属性。
对于按钮等,您需要使用 MapView Delegate 方法:
Apple 建议重用注释,这是您需要考虑的事情。
The answers to this are all provided in Apples Docs I suggest you read them more closely. However to have a call out all you need to do is set the title property.
For buttons and such you need to use the MapView Delegate method:
Apple suggests reusing annotations this is something you will need to take into account.