首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

object-c 中@synthesize的用途

2012-09-10 
object-c 中@synthesize的用处In your class implementation, you can use the?@synthesize?compiler dire

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;

热点排行