Iphone:自定义 MKAnnotationView 标注
我刚刚花了最后一个小时在 stackoverflow 和 Google 上查找有关自定义标注的示例。因此,不是您单击的实际引脚,而是其上方显示的位。
我想要的是能够将自己的观点置于其之上。因此,JAKERI 示例可以自定义视图,但不会将它们放置在引脚附近(因此,如果有人知道如何在引脚上方放置可以工作的视图),异步解决方案博客示例扩展了我认为的泡沫,并且看起来有些过头了,
那么,有吗?有没有一种简单的方法可以在点击时放置您自己关于地图图钉的视图?我需要创建一个包含 5 行、3 个图像和一个按钮的完整视图
I just spent the last hour looking through stackoverflow and Google for examples on doing custom callouts. So not the actual pin that you click but the bit that appears above it.
What I want is to be able to put my own view above it. So JAKERI example does custom views but does not place them near the pin (so if anyone knows how to place a view above the pin that would work), Asynchrony Solutions blog example extends the bubble I believe and seems like a overkills
So, is there a simple way to place your own view about the map pin on click? I need to create quite a complete view with 5 lines, 3 images and a button
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试阅读此内容。我以前用过它,它对我有用。
Try reading this. I've used it before and it did the trick for me.