6
这些是调用警告的行: @property(nonatomic,retain)NSString * Title; @property(nonatomic,retain)NSString * Subtitle;属性标题复制属性与从MKAnnotation继承的属性不匹配
我的警告是:财产“标题”“复制MKAnnotation”
任何想法“属性不从继承的财产匹配”?
在此先感谢!
#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>
@interface MapAnnotation : NSObject <MKAnnotation> {
CLLocationCoordinate2D coordinate;
NSString *title;
NSString *subtitle;
int listIndex;
}
@property (nonatomic) CLLocationCoordinate2D coordinate;
@property (nonatomic, retain) NSString *Title;
@property (nonatomic, retain) NSString *Subtitle;
@property (nonatomic) int listIndex;
@end
可能的重复[为什么在升级到Xcode 4.2之后MKAnnotation会显示警告](http://stackoverflow.com/questions/7760081/why-after-upgrading-to-xcode-4-2-does- mkannotation-display-a-warning) – 2013-03-14 05:44:55