Semantic Issue: Property’s synthesized getter follows Cocoa naming convention for returning ‘owned’ objects

I’m currently using the iOS 5 SDK trying to develop my app.
I’m trying to make an NSString a property, and then to synthesize it in the .m file (I have done this before with no issues). Now, I came across this: “Semantic Issue: Property’s synthesized getter follows Cocoa naming convention for returning ‘owned’ objects.”

This is my code:
.h

@interface ViewController : UIViewController {
     NSString *newTitle;
}
@property (strong, nonatomic) NSString *newTitle;

.m

@synthesize newTitle;

Does anyone have a clue how I could fix this?
Thanks!!

10 Answers
10

Leave a Comment