Dot syntax,@property,@synthesize

 

Dot syntax,@property,@synthesize

 

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

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

 

Dot syntax,@property,@synthesize

Dot syntax,@property,@synthesize

Dot syntax,@property,@synthesize

 

 

 

REFERENCES:www.mobiletrain.org

相关文章: