您的位置:首页 > 其它

MKPinAnnotationView和MKAnnotatio…

2014-01-13 16:11 211 查看
MKPinAnnotationView和MKAnnotationView区别,MKAnnotationView可以使用静态图片作为实例作为view,如果想使用Apple自带的标准大头针,那么需要使用MKPinAnnotationView。


MKAnnotation Protocol
Reference

@protocol MKAnnotation
<<span
class="s2">NSObject>

// Center latitude and longitude of the annotion view.

// The implementation of this property must be KVO
compliant.

@property (nonatomic,
readonly) CLLocationCoordinate2D
coordinate;

@optional

// Title and subtitle for use by selection UI.

@property (nonatomic,
readonly, copy) NSString
*title;

@property (nonatomic,
readonly, copy) NSString
*subtitle;

// Called as a result of dragging an annotation view.

-
(void)setCoordinate:(CLLocationCoordinate2D)newCoordinate
NS_AVAILABLE(NA, 4_0);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: