简体   繁体   English

自定义MKAnnotationView

[英]custom MKAnnotationView

I have been trying to create a MKAnnotationView which has to display multiple line of text. 我一直在尝试创建一个MKAnnotationView,它必须显示多行文本。

Some one has pointed me to do things said in the below url 有人指出我做的事情在下面的网址中说

How to add more details in MKAnnotation in iOS 如何在iOS中的MKAnnotation中添加更多细节

But i am not sure how to attain it due to my small knowledge in iPhone programming.. 但由于我对iPhone编程知之甚少,我不知道如何实现它。

i have searched for a long tme but no use ... 我已经搜索了很长时间但没有用...

Looking for help...Please guide me .. 寻求帮助......请指导我..

Just to clarify, and based on what you are saying, you want to customise the look of the CALLOUT bubble that shows title/subtitle, not the annotation view itself, is this correct? 只是为了澄清,并根据你的意思,你想要自定义显示标题/副标题的CALLOUT气泡的外观,而不是注释视图本身,这是正确的吗?

In case you're not clear, the MKAnnotationView is basically the image/icon/button that you see on top of the map for a specific location. 如果您不清楚,MKAnnotationView基本上是您在地图顶部为特定位置看到的图像/图标/按钮。 Once you tap on that image/icon, if enabled, a call out bubble will appear where you can set a view for the left hand side, title, subtitle and a view for the right hand side - is this what you are hoping to customise? 点击该图像/图标后,如果启用,则会出现一个呼出气泡,您可以在其中设置左侧,标题,副标题和右侧视图的视图 - 这是您希望自定义的内容?

If that's the case, this is a non-trivial task and if you are new to iPhone development chances are this is going to take a long time for you to implement. 如果是这种情况,这是一项非常重要的任务,如果您不熟悉iPhone,那么实施这一过程可能需要很长时间。

If you still want to have a look, here's a blog post that might be of interest to you... http://blog.asolutions.com/2010/09/building-custom-map-annotation-callouts-part-1/ 如果你还想看看,这里有一篇你可能感兴趣的博客文章... http://blog.asolutions.com/2010/09/building-custom-map-annotation-callouts-part-1 /

是另一个自定义MKAnnotationView的标注气泡的演示。

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

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