
Notification Center - Publisher
NotificationCenter.Publisher name publish 할 Notification 의 이름 object 위 name 을 가지는 Notification 을 post 할 object, 만약 nil 이면, 해당 이름을 가지는 모든 노티피케이션을 sender 에 상관없이 publish 한다. Return Value Notification 을 publish 하는 Publisher 를 리턴한다. Notification Publisher 예시 UITextField 는 기본적으로 text 프로퍼티가 바뀔 때마다, UITextField.textDidChangeNotification 을 post 한다. 즉 Notification Center 를 통해 해당 텍스트 변경 이벤트를 구독하는 옵저버를 만들거나..
Comment