iOS/iOS SeSAC 2기 TIL

옵저버 & NotificationCenter

Developer-Michelle 2022. 8. 19. 22:12

옵저버

 

https://velog.io/@kevinkim2586/iOS-Swift-%EA%B3%B5%EB%B6%80-Observer-Notification-Design-Pattern

 

iOS & Swift 공부 - Observer & Notification Design Pattern

Observer & Notification → Observer 가 코드 어딘가에서 서식하며 Notification 을 기다리는 개념 → 특정 이벤트가 발생하면 Notification 을 발동하게끔 할 수 있음. 그때 기다리고 있던 Observer 역시 발동하여,

velog.io

 

 

https://hongssup.tistory.com/196

 

[Swift iOS] NotificationCenter & Observer

NotificationCenter에 등록된 이벤트가 발생하면 해당 이벤트들에 대한 행동을 취하는 것. 앱 내에서 아무데서나 메시지를 던지면 앱 내의 아무데서나 이 메시지를 받을 수 있게 해 주는 것이 NSNotifica

hongssup.tistory.com

 

 

https://jiseok-zip.tistory.com/entry/iOS%EC%98%B5%EC%A0%80%EB%B2%84-%ED%8C%A8%ED%84%B4Observer-Pattern

 

[iOS]옵저버 패턴(Observer Pattern)

옵저버 패턴 ❓ 옵저버 패턴은 한 Object의 상태가 바뀌면 그 객체에 의존(구독) 하는 다른 객체들한테 연락이 가고 자동으로 내용이 갱신되는 방식으로 1:N(1대다) 관계를 정의합니다. 예시로 유튜

jiseok-zip.tistory.com