This question already has an answer here:
- How does an underscore in front of a variable in a cocoa objective-c class work? 9 answers
I wrote a setter method -
- (void)setMyProp:(MyProp *)myProp{
_myProp = myProp;
}
How is underscore put before property name is working? I know this question has been asked, but they are about user setting property name to _myProp, some convention. I am not synthesizing or changing the property name. How this underscore is working?