본문 바로가기

seong_hye, the developer

검색하기
seong_hye, the developer
프로필사진 seong_hye

  • My P_Life (119)
    • JAVA (3)
    • 알고리즘 코드 (3)
    • IOS (100)
      • SwiftUI (25)
      • UIKit (13)
      • Error (7)
    • Infomation (6)
      • Firebase (1)
      • Git (1)
    • Daily Life (3)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/09   »
일 월 화 수 목 금 토
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
Tags
  • apns
  • error
  • SWIFTUI
  • CoreImage
  • list
  • self
  • NotificationCenter
  • ScrollView
  • Switch
  • viewlifecycle
  • calendar
  • http
  • Observer
  • segue
  • Git
  • uikit
  • IOS
  • singleton
  • Animation
  • array
  • PushNotification
  • class
  • 고차함수
  • Refresh
  • 글또
  • escaping
  • mvvm
  • struct
  • SWIFT
  • 화면전환
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록enum (1)

seong_hye, the developer

Swift) 문법 정리 - 열거형(Enum)

swift에서 사용하던 타입 중 가장 대표적인 Int, String, Double의 경우 스위프트에 내장되어 있는 기본 타입인 Basic Type이라고 한다면 개발자가 마음대로 만들어 쓸 수 있는 타입인 Custom Type이 있다.그 중 하나에 대해 오늘 알아보려 한다.열거형 (Enumeration)타입 자체를 한정된 사례 안에서 정의할 수 있는 타입타입으로 만든 경우, 미리 정의해둔 타입의 케이스에서 벗어날 수 없으므로코드의 가독성과 안정성이 높아짐ex) 월, 화, 수, 목, 금, 토, 일 / 가위, 바위, 보 enum Weekday { case monday case tuesday case wednesday case thursday case friday case saturd..

IOS 2022. 7. 12.
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바