self (2) 썸네일형 리스트형 [iOS] Self Expression Self 표현식 Self Expression self 표현식은 현재 유형 또는 해당 유형의 인스턴스에 대한 명시적 참조입니다. 다음과 같은 형식이 있습니다. The self expression is an explicit reference to the current type or instance of the type in which it occurs. It has the following forms: self self.member name self[subscript index] self(initializer arguments) self.init(initializer arguments) 이니셜 라이저, 아래 첨자 또는 인스턴스 메서드에서 self는 현재 발생하는 형식의 현재 인스턴스를 나타냅니다. 유형 방법.. [iOS] Self # Instance Method # # self( ) # 수신자를 반환합니다. Returns the receiver. 필수입니다. Required. 선언 Declaration func `self`() -> Self 반환값 Return Value 수신자 The receiver. Self Type Self 유형은 특정 유형이 아니라 해당 유형의 이름을 반복하거나 알지 않고도 편리하게 현재 유형을 참조 할 수 있습니다. The Self type isn’t a specific type, but rather lets you conveniently refer to the current type without repeating or knowing that type’s name. 프로토콜 선언 또는 프로토콜 멤버 선언.. 이전 1 다음