Removes matching entries from the notification center's dispatch table.
- iOS 2.0+
- macOS 10.0+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
Observer to remove from the dispatch table. Specify an observer to remove only entries for this observer.
Name of the notification to remove from dispatch table. Specify a notification name to remove only entries that specify this notification name. When
nil, the receiver does not use notification names as criteria for removal.
Sender to remove from the dispatch table. Specify a notification sender to remove only entries that specify this sender. When
nil, the receiver does not use notification senders as criteria for removal.
If your app targets iOS 9.0 and later or macOS 10.11 and later, you don't need to unregister an observer in its
dealloc method. Otherwise, you should call this method or
observer or any object specified in
add is deallocated.