Thursday 11 June 2015

Accessor Methods in iPhone

Accessor methods is used to access or set an object’s properties:
Syntax-
  1. NSString *firstName = [somePerson firstName];
  2. [somePerson setFirstName:@”Johnny”];
These accessor methods are by default and automatically synthesized by the compiler, therefore, now you only have to declare the property using @property in the class interface.
To Read complete information about “Accessor Methods in iPhone” visit FindNerd .
For more iPhone blogs you can visit to our iphone development blogs section. As it is an effective technology forum, so here you can also ask questions & look for various programming queries along with their solutions including Android, Php, Java, c programming questions and answers etc.

No comments:

Post a Comment