Blog

Synthesized Methods For The Property NSString *title

By Sachin Bhardwaj Blogs | iOS Feb 15, 2013
In this blog I will explain how to Synthesized Methods For The Property NSString *title without using @ synthesize Keyword.

- (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.

}

}

COMMENT USING

PREMIUM SPONSORS

Hire Mobile & Web Developer on demand. 100% satisfaction. Try for 1 week or Money Back. Local and remote developers available all over USA.

Latest Blogs