Top "Nsnotificationcenter" questions

NSNotificationCenter allows to send and register for notifications in the Foundation framework, which is provided by Apple.

iOS Detect system volume level change. private API or not? AVSystemController_SystemVolumeDidChangeNotification

Can listening to AVSystemController_SystemVolumeDidChangeNotification NSNotification be considered (during the App Store review process) as using private API? In my …

ios avfoundation appstore-approval nsnotificationcenter iphone-privateapi
How to set addObserver in SwiftUI?

How do I add NotificationCenter.default.addObserve in SwiftUI? When I tried adding observer I get below error Argument of …

swift swiftui nsnotificationcenter
NSNotification sent once, but is received multiple times

I am communicating between two classes with NSNotificationCenter. My problem is that although I tap a button once (and that …

objective-c cocoa-touch nsnotificationcenter
Why doesn't Remove Observer from NSNotificationCenter:addObserverForName:usingBlock get called

I'm confused on why the observer is never removed in the following code. In my viewDidAppear I have the following: …

iphone ios objective-c-blocks nsnotifications nsnotificationcenter
NSNotification being raised multiple times

i am developing a e-book reader and i had encountered the following issue. i am using an IBAction method to …

iphone ipad nsnotifications nsnotificationcenter
How to retrieve all NSNotificationCenter observers?

I'd like to retrieve a list of observers (objects and selectors) for a given notification name. I know there's no …

ios cocoa-touch cocoa nsnotificationcenter
KVO - How to get a list of an objects registered observers

I am registering an observer on a bunch of tableview controllers dynamically so I need to remove previous observers if …

iphone ios key-value-observing nsnotificationcenter nsnotification