본문 바로가기

seong_hye, the developer

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

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

목록POST (1)

seong_hye, the developer

Swift) NotificationCenter이란?

📘 Swift : NotificationCenter 🔹 NotificationCenter 란?iOS에서 컴포넌트 간 메시지를 전달하는 이벤트 브로드캐스팅 시스템이다.~> 앱 내부에서 **누군가 어떤 일을 했음을 여러 객체에 알려줄 수 있는 구조**를 제공함Swift에서 ViewController나 Model끼리 의존성없이 통신할 수 있게 해주는 중요한 도구 객체간의 직접 참조 없이도 메시지를 전달할 수 있게 해주는 옵저버 패턴 구현체- 발신자(Post) : 어떤 이벤트가 발생했음을 알림- 수신자(Observer) : 특정 알림을 구독하고, 발생 시 자동으로 호출됨 🔹 사용 구조✅ UIKit의 경우// 1. 알림 이름 정의extension Notification.Name { static let dat..

IOS 2022. 7. 26.
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바