Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- Animation
- 화면전환
- CoreImage
- PushNotification
- Git
- Switch
- calendar
- SWIFTUI
- 글또
- singleton
- error
- list
- struct
- apns
- ScrollView
- IOS
- viewlifecycle
- self
- NotificationCenter
- SWIFT
- uikit
- class
- mvvm
- segue
- http
- escaping
- 고차함수
- Refresh
- Observer
- array
Archives
- Today
- Total
목록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.