Property name Copy attribute does not match property inherited from MKnnotation

These are the warning lines: @property (non-atomic, preserving) NSString * Title; @property (non-atomic, preserving) NSString * Subtitle;

My warning: the attribute 'title' 'copy' of the property does not match the property inherited from 'MKAnnotation'

Any ideas?

Thanks in advance!

#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 
+6
source share
1 answer

Edit:

@property (non-atomic, preserving) NSString * Title;

in

@property (non-nuclear, copy) NSString * title;

+28
source

Source: https://habr.com/ru/post/912347/


All Articles