以下是发出警告的行:
@属性(非原子的,保留)NSString * Title;
@属性(非原子性,保留)NSString *字幕;

我的警告是:属性“标题”的“复制”属性与从“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

最佳答案

改变:



进入:

关于properties - 属性标题的“复制”属性与从MKAnnotation继承的属性不匹配,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/10002647/

10-11 22:59
查看更多