본문 바로가기

seong_hye, the developer

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

  • My P_Life (120)
    • JAVA (3)
    • 알고리즘 코드 (3)
    • IOS (56) N
      • 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
  • self
  • PushNotification
  • calendar
  • error
  • Git
  • escaping
  • uikit
  • 글또
  • 화면전환
  • http
  • Animation
  • 고차함수
  • Observer
  • mvvm
  • SWIFT
  • viewlifecycle
  • CoreImage
  • Switch
  • SWIFTUI
  • list
  • singleton
  • ScrollView
  • struct
  • apns
  • class
  • NotificationCenter
  • array
  • segue
  • IOS
  • Refresh
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록extension (1)

seong_hye, the developer

Swift) 문법정리 - 확장(Extension)

확장(Extension)이란?기존 클래스, 구조체, 열거형 타입에 새로운 Property, Method, Initializer 등을 추가하는 것으로,원본 타입(소스 코드)에 접근하지 못하는 타입들도 확장해서 사용할 수 있음extension이란 키워드를 사용하여 확장함 사용하는 이유? 원본 소스 코드에 대한 액세스 권한이없는 유형을 확장하는 기능이 포함 (소급-모델링 retroactive modeling)예) Int, String, Double 등 애플이 미리 만들어 놓은 타입에 확장도 가능[ Struct에선 self를 사용할 때 mutating 키워드 필요 ]class Person { var id = 0 var name = "이름" var email = "1234@gmail.com" ..

IOS 2022. 10. 18.
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바