Blog

Synthesized Methods For The Property NSString *title

By Sachin Bhardwaj Feb 15 2013
In this blog I will explain how to Synthesized Methods For The Property NSString *title without using @ synthesize Keyword.
    • Like
    • Love It
    • Awesome
    • Interesting
    • It's Okay
    • Thumbs Down
  • 3.9k
  • 0

- (NSString*) title  // Getter method

{

return title;

}

- (void) setTitle: (NSString*) newTitle          //Setter method

{

if (newTitle != title)

{

[title release];

title = [newTitle retain]; // Or copy, depending on your needs.

}

}