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

Peppo

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

Peppo

검색하기 폼
  • 분류 전체보기 (221)
    • Story (13)
    • iOS (143)
      • Error (11)
    • 알고리즘 (43)
    • ETC (7)
    • React-Native (0)
    • CS (Computer science) (3)
  • 방명록

swift UserDefaults object (1)
[iOS] UserDefaults 로 객체를 저장을 해보자

알람 부분을 구현하는 중에 아래의 프로퍼티들을 담은 Alarm 이라는 객체를 만들어 UserDefaults에 저장하려고 합니다. // Alarm.swift struct Alarm: Codable, Equatable { let alarmTable: String let alarmMeridiem: String let alarmTimes: String } 아하! 저번에 UserDefaults 때 값 저장, 불러오기는 아래 처럼 하면 된다했었지 ! 그럼 이렇게 값저장 하면 되겠네 ! . . . 응 안돼 ~ 객체를 저장할때는 조금 다른 방식으로 합니다. 바로 PropertyListEncode, PropertyListDecode를 활용하는데요. 간단하게 Encode, Decode의 개념에 대해 알아보고 갈게요 Enc..

iOS 2022. 3. 30. 21:53
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • Peppo's Github
TAG
  • Swift RIBs
  • iOS error
  • RTCCameraVideoCapturer
  • swift 고차함수
  • Swift joined()
  • swift property
  • Swift inout
  • swift reduce
  • swift protocol
  • Swift 알고리즘
  • Class
  • CS 네트워크
  • 원티드 프리온보딩
  • Combine: Asynchronous Programming with Swift
  • Swift init
  • Swift Error Handling
  • removeLast()
  • Swift Leetcode
  • RIBs tutorial
  • swift (programmers)
  • Swift
  • Swift joined
  • swift programmers
  • Swift final
  • Swift ModernRIBs
  • Swift 프로퍼티
  • Swift 프로그래머스
  • 2023년 회고
  • ios
  • Swift 내림차순
more
«   2025/07   »
일 월 화 수 목 금 토
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 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바