您的位置:首页 > 其它

MKAnnotationView和MKPinAnnotationView的区别

2012-02-06 14:58 197 查看
之前一直没搞清楚MKAnnotationView和MKPinAnnotationView的区别,看apple的官方文档终于搞清楚了。

如果想创建以静态图片作为大头针图片的话,可以通过创建MKAnnotationView是实例。如果想使用apple自带的大头针则创建MKPinAnnotationView

If the annotation can be represented by a static image, create an instance of the
MKAnnotationView
class and assign the image to its
image
property; see
“Using the Standard Annotation Views.”

If you want to use a standard pin annotation, create an instance of the
MKPinAnnotationView
class; see
“Using the Standard Annotation Views.”
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: