【发布时间】:2014-03-17 15:59:30
【问题描述】:
我知道实例变量和属性。我经常看到人们像这样初始化UILabel
self.label = [[UILabel alloc] init]; //and
_label = [[UILabel alloc] init];
那么,使用self.label 和_label 设置对象有什么区别?
【问题讨论】:
-
它只是一个约定,表示它是私有变量。我相信在概念上是一样的。
标签: objective-c declared-property