You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
826 B
35 lines
826 B
// |
|
// XHAnnotation.h |
|
// MessageDisplayExample |
|
// |
|
// Created by HUAJIE-1 on 14-5-9. |
|
// Copyright (c) 2014年 曾宪华 开发团队(http://iyilunba.com ) 本人QQ:543413507 本人QQ群(142557668). All rights reserved. |
|
// |
|
|
|
#import <Foundation/Foundation.h> |
|
#import <MapKit/MapKit.h> |
|
|
|
@interface XHAnnotation : NSObject <MKAnnotation> |
|
|
|
/** |
|
* 实现MKAnnotation协议必须要定义这个属性 |
|
*/ |
|
@property (nonatomic, readwrite) CLLocationCoordinate2D coordinate; |
|
|
|
/** |
|
* 标题 |
|
*/ |
|
@property (nonatomic, copy) NSString *title; |
|
|
|
/** |
|
* 子标题 |
|
*/ |
|
@property (nonatomic, copy) NSString *subtitle; |
|
|
|
@property (nonatomic, strong) CLRegion *region; |
|
|
|
@property (nonatomic, readwrite) CLLocationDistance radius; |
|
|
|
- (id)initWithCLRegion:(CLRegion *)newRegion title:(NSString *)title subtitle:(NSString *)subtitle; |
|
|
|
@end
|
|
|