본문 바로가기 메뉴 바로가기

THIS IS ELLIE

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

THIS IS ELLIE

검색하기 폼
  • 분류 전체보기 (242) N
    • Tech (234)
      • iOS (48)
      • Swift (39)
      • SwiftUI (25)
      • RxSwift (5)
      • Combine (3)
      • Objective-C (11)
      • Video (5)
      • Deep Learning (11)
      • Xcode (4)
      • Algorithm (38)
      • CS (5)
      • WWDC (9)
      • Troubleshooting (26)
    • Lifestyle (8) N
      • ETC (8) N
  • 방명록

Codable (1)
동일한 키 다른 타입 디코딩하기

Landmark구조체가 있다고 가정해본다. struct Landmark { var name: String var foundingYear: Int } Landmark에 Codable프로토콜을 채택한다. Codable프로토콜(Decodable, Encodable)을 채택하면 따로 선언하지 않아도 Codable메서드인 init(from: ) 및 encode(to :)를 지원한다. struct Landmark: Codable { var name: String var foundingYear: Int // Landmark now supports the Codable methods init(from:) and encode(to:), // even though they aren't written as part of i..

Tech/Troubleshooting 2021. 3. 30. 18:25
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • GitHub
TAG
  • 알고리즘
  • objective-c
  • 스위프트
  • 책 추천
  • SWIFT
  • 책 후기
  • 독서
  • leetcode
  • 스위프트UI
  • 문자열
  • 책
  • ios
  • Xcode
  • swift5
  • ReactiveX
  • Algorithm
  • string
  • ARC
  • stanford SwiftUI
  • objc
  • wwdc
  • 딥러닝
  • 애니메이션
  • swiftUI
  • Deep learning
  • rxswift
  • RX
  • iOS SwiftUI
  • 머신러닝
  • Animation
more
«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바