自定义MKPinAnnotation标注气泡类似于默认标注气泡 [英] Custom MKPinAnnotation callout bubble similar to default callout bubble
问题描述
我想在MKMapView上创建一个自定义标注气泡。但我想以与默认气泡相同的方式创建呼出气泡。那么如何在此图像中创建一个类似注释的视图
alt text http: //blog.objectgraph.com/wp-content/uploads/2009/04/mapkit31.png
i want to create a custom callout bubble on MKMapView. But i want to create the call out bubble in the same manner of default bubble. So how to create a View look like annotaion in this image alt text http://blog.objectgraph.com/wp-content/uploads/2009/04/mapkit31.png
我想要一个自定义视图,看起来像停放位置注释在下图中。自定义宽度,高度等.P
I want a custom custom view which look like "Parked Location" annotaion in the following image. with custom width, height etc. P
我无法在默认气泡中添加所需的详细信息。这就是为什么要创建自定义泡泡。
I am not able to add required details in Default bubble. Thats why am creating custom bubble.
Plz帮助我......谢谢..
Plz help me..thanks..
推荐答案
我开发了一个与系统标注气泡几乎相同的自定义标注气泡,但在高度和内容方面提供了更大的灵活性。调整外观以满足您的需求应该是相当微不足道的。请参阅我在 Asynchrony Solutions博客上发表的帖子例如代码和实现良好的标注替换所需的步骤。
I have developed a custom callout bubble that is nearly identical to the system callout bubble, but gives more flexibility over the height and content. It should be fairly trivial to adjust the appearance to suit your needs. See my post on the Asynchrony Solutions blog for example code and the steps required to implement a good callout replacement.
这篇关于自定义MKPinAnnotation标注气泡类似于默认标注气泡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!