I’m studying Objective C with “Programming in Objective C” book and I got to the part where he explain on @property and @synthesize, but im trying to understand something:
Since declaring the setter and getter I had to provide an argument names, in this case it was only 1 for each but im pretty positive its possible to declare getter/setter with more than 1.
In that case, how does the compiler know how many arguments to generate while using @property ?
I’m studying Objective C with Programming in Objective C book and I got to
Share
A property setter can only take one argument and a property getter cannot take any arguments.
It is possible to have a method that takes more than one argument and sets things, but that is not property setter.