`
咖啡动力
  • 浏览: 435107 次
  • 性别: Icon_minigender_2
  • 来自: 北京
社区版块
存档分类
最新评论

@synthesize a=b; 与@synthesize c;的区别

 
阅读更多
@synthesize a=b;
@synthesize c;

- (void)loadView {
a=1;                                                         //打印结果
b=9;
NSLog(@"loadView......%d",a);               //结果 1
NSLog(@"loadView1......%d",b);                          9
NSLog(@"loadView2........%d",[self a]);                9
NSLog(@"loadView......%d",a);                            1

[self setC:5];

NSLog(@"loadView3......%d",c);                            5
NSLog(@"loadView4........%d",[self c]);                  5
}


个人觉得是引用。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics