I have these 2 properties that are set in a NSObject
@property (nonatomic, readonly, copy) NSString *title;
@property (nonatomic, readonly, copy) NSString *subtitle;
And they cause a warning to this bit of code – i Think?? Which are set in a UITableViewController implementation file with that the previous code subclassed to it.
[destination1 setTitle:@"Main Title"];
[destination1 setSubtitle:@"Subtitle"];
It comes up with the warning:
‘MyAnnotation’ may not respond to ‘setTitle:’
I have this feeling I am not far away from the right answer:-) Any Advice on how to fix this?
Your properties are declared
readonly, so there are no setters available.