简体   繁体   English

Iphone:自定义 MKAnnotationView 标注

[英]Iphone : Custom MKAnnotationView Callouts

I just spent the last hour looking through stackoverflow and Google for examples on doing custom callouts.我刚刚花了最后一个小时浏览 stackoverflow 和 Google 以获取有关自定义标注的示例。 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所以 JAKERI 示例做了自定义视图,但没有将它们放置在图钉附近(所以如果有人知道如何在图钉上方放置一个可行的视图),异步解决方案博客示例扩展了我相信的泡沫,似乎有点矫枉过正

So, is there a simple way to place your own view about the map pin on click?那么,有没有一种简单的方法可以在点击时放置您对 map 引脚的看法? I need to create quite a complete view with 5 lines, 3 images and a button我需要创建一个包含 5 行、3 个图像和一个按钮的完整视图

Try reading this .试试看这个 I've used it before and it did the trick for me.我以前用过它,它对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM