가능한 중복 :
How does an underscore in front of a variable in a cocoa objective-c class work?속성 이름의 밑줄 접두사?
사람이 밑줄의 사용에 대한 설명으로 날 포인트, 나는 항상 당신이 바르 [_window release];
에 액세스하는 것을 강조하기 위해 사용되는 것으로 가정했다 setter/getter 메서드 [[self window] release];
또는 [self.window release];
을 통해 iVar에 액세스하는 것이 아니라 내 이해가 올바른지 확인하고자합니다.
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UILabel *markerLabel;
@synthesize window = _window;
@synthesize markerLabel = _markerLabel;
내가 그걸 사용하고 있습니다. –
이것은 여기이 다른 속보를 가리 키기 위해 사용됩니다. 흥미 롭습니다. http://stackoverflow.com/questions/3521254/prefixing-property-names-with-an-underscore-in-objective-c –