Dies sind die Zeilen, die eine Warnung aufrufen: @property (nicht atomisch, beibehalten) NSString * Titel; @property (nicht atomisch, behalten) NSString * Untertitel;Titel der Eigenschaft Kopieren des Attributs stimmt nicht mit der von MKAnnotation geerbten Eigenschaft überein
Meine Warnung ist: Eigentum ‚Titel‘ ‚Kopie MKAnnotation‘
Irgendwelche Ideen ‚Attribut von geerbten nicht die Eigenschaft übereinstimmen‘?
Vielen Dank im Voraus!
#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
mögliche Duplikate von [Warum zeigt MKAnnotation nach dem Upgrade auf Xcode 4.2 eine Warnung an] (http://stackoverflow.com/questions/7760081/why-after-upgrading-to-xcode-4-2-does- mkannotation-display-a-warning) –