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
“Using the Standard Annotation Views.”
If you want to use a standard pin annotation, create an instance of the
“Using the Standard Annotation Views.”
如果想创建以静态图片作为大头针图片的话,可以通过创建MKAnnotationView是实例。如果想使用apple自带的大头针则创建MKPinAnnotationView
If the annotation can be represented by a static image, create an instance of the
MKAnnotationViewclass and assign the image to its
imageproperty; see
“Using the Standard Annotation Views.”
If you want to use a standard pin annotation, create an instance of the
MKPinAnnotationViewclass; see
“Using the Standard Annotation Views.”
相关文章推荐
- ios 之MKAnnotationView与MKPinAnnotationView 的区别
- 11.04 MKAnnotationView和MKPinAnnotationView的区别 代码示例
- MKAnnotationView和MKPinAnnotationView的区别
- MKPinAnnotationView和MKAnnotatio…
- MKAnnotationView,MKAnnotation与MKMapView结合使用显示坐标点
- 【XCode7+iOS9】http网路连接请求、MKPinAnnotationView自定义图片和BitCode相关错误--备用
- Spring Rest的注解annotation和配置文档(ContentNegotiatingViewResolver)的区别
- 【XCode7+iOS9】http网路连接请求、MKPinAnnotationView自定义图片和BitCode相关错误
- UIImageView的内容模式以及ImageNamed和imageWithContentsOfFile的区别
- Spring 开启Annotation <context:annotation-config> 和 <context:component-scan>诠释及区别
- WebViewClient与WebChromeClient的区别
- 转:viewDidUnload 和 dealloc 的区别
- annotation-config, annotation-driven, compont-scan 区别
- viewstate,session,cookie的区别
- asp.net Application、 Session、Cookie、ViewState、Cache、Hidden 的区别
- Android中view和surfaceview的区别
- UI-UIImageView和Image的区别
- Spring 开启Annotation <context:annotation-config> 和 <context:component-scan>诠释及区别
- (转)View.inflate和LayoutInflater的inflate方法区别
- Asp.net中Application Session Cookie ViewState Cache Hidden 区别