I have an interface with properties.
I would like to know the way to declare callback to reach its instance’s setter or getter.
Is there a way to do it?
Sorry for my english and thx for your answers and time.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you declared a @property for your instance variable, and then synthesized it in your implementation file, your getter and setter are automatically created for you. Example for a NSMutableArray
Then on your implementation:
Once that’s done, you can get and set your instance variable values by using:
Getter:
self.arrayOR[self array]Setter:
self.array = ...OR[self setArray:...]