These are the lines that are invoking a warning: @property (nonatomic, retain) NSString *Title; @property (nonatomic, retain) NSString *Subtitle;
My Warning is:property 'title' 'copy' attribute 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
Change:
@property (nonatomic, retain) NSString *Title;
into:
@property (nonatomic, copy) NSString *title;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With