在头文件中使用 @property int age;可以替换setter和getter。 在实现类中使用@synthesize age;可以替换实现setter和getter。 REFERENCES:www.mobiletrain.org 相关文章: