object-c 中@synthesize的用處

In your class implementation, you can use the @synthesize compiler directive to ask the compiler to generate the methods according to the specification in the declaration:

@synthesize flag;
@synthesize nameObject;
@synthesize rootView;

You can combine the @synthesize statements in a single line if you want:

@synthesize flag, nameObject, rootView;
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章