Accessor methods is used to access or set an object’s properties:
Syntax-
- NSString *firstName = [somePerson firstName];
- [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