Dot syntax,@property,@synthesize

在头文件中使用 @property int age;可以替换setter和getter。

在实现类中使用@synthesize age;可以替换实现setter和getter。

REFERENCES:www.mobiletrain.org

原文地址:https://www.cnblogs.com/anee/p/2776027.html