可能重複:
How does an underscore in front of a variable in a cocoa objective-c class work?需要一些解釋對財產
我在iOS應用development.I初學者看着很多教程,我碰到下面的行
。 h文件包含:
@property (strong) ScaryBugData *data;
.M包含:
@synthesize data = _data;
但我沒有得到的data = _data
意義。 爲什麼這是必需的或它的意思。
裁判:http://www.raywenderlich.com/1797/how-to-create-a-simple-iphone-app-tutorial-part-1
這裏還有另外16:http://stackoverflow.com/q/5582448/ http://stackoverflow.com/q/6049269/ http://stackoverflow.com/q/2371489/ HTTP:/ /stackoverflow.com/q/7174277/ http://stackoverflow.com/q/5659156 http://stackoverflow.com/q/837559/ http://stackoverflow.com/q/6146244/ http: //stackoverflow.com/q/10651535/ http://stackoverflow.com/q/6124109/ http://stackoverflow.com/q/8145373/ http://stackoverflow.com/q/3521254/ http://stackoverflow.com/q/6064283/ http://stackoverflow.com/q/9696359/ http://stackoverflow.com/q/5521499/ http://stackoverflow.com/q/5466496/ http://stackoverflow.com/q/2114587/ – 2012-07-09 18:13:25