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