自定义MKAnnotationView标注 [英] Custom MKAnnotationView Callout
本文介绍了自定义MKAnnotationView标注的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
自定义MKPinAnnotation标注气泡类似于默认的标注气泡
如何自定义MKAnnotationView的标注气泡?
有谁知道,或者有代码显示如何创建自定义MKAnnotationView标注?我的意思是实际的文本泡沫,而不是针脚。在此先感谢。
Does anyone know, or have code that shows, how to create a custom MKAnnotationView Callout? I mean the actual text bubble and not the pin. Thanks in advance.
推荐答案
你不能自定义MKAnnotationView,你只能左右自定义标注视图,它只是一个查看,所以你可以放任何你想要的东西。
如果你想要一个自定义的MKAnnotationView,你需要捕捉触摸并处理其余的。
you cannot make a custom MKAnnotationView, you can only custom the callout views left and right, it's just a view, so you can put anything you want.
If you want a custom MKAnnotationView you will need to capture the touch and handle the rest.
这篇关于自定义MKAnnotationView标注的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文