More on Classes(Chapter 7 of Programming in Objective-C 2.0)
In general, if you have an instance variable called x, including the following line in your implementation section causes the compiler to automatically synthesize a getter method called x and a setter method called setX:.
@synthesize x;
浙公网安备 33010602011771号