Protocol (2) 썸네일형 리스트형 [iOS] Codable Codable cf)Codable Codable 이란? Codable: A type that can convert itself into and out of an external representation. Codable 이라는 Typealias는 자신을 변환하거나 외부 표현으로 변환할 수 있는 타입을 의미한다. 여기서 외부표현이란 JSON과 같은 타입을 의미한다. 선언 typealias Codable = Decodable & Encodable Codable 은 위와 같이 이루어져 있다. 즉, Codable은 Decodable 과 Encodable 프로토콜을 준수하는 타입이다. Decodable & Encodable Decodable : 자신을 외부표현(External representation)에서 디코.. [iOS] Delegate Pattern Delegate pattern INDEX Delegation In Swift Explained What is Delegation? Delegation: A Simple Example in Swift Delegation In Practical iOS Development Why Use Delegation? 1. Delegation In Swift Explained Delegation ( Delegate Pattern) 은 실제 iOS 개발에서 매우 자주 사용되는 디자인 패턴이다. 이 Delegate Pattern 의 작동 방식에 대해 상세히 알아보도록 한다. What is Delegation? 애플 공식 문서에서는 delegation을 아래와 같이 정의하고 있다. 딜리게이션 이란 일부 클래스의 책임을 다른.. 이전 1 다음