Top "Nsnotification" questions

NSNotification objects encapsulate information so that it can be broadcast to other objects by an NSNotificationCenter object.

How do you create custom notifications in Swift 3?

In Objective-C, a custom notification is just a plain NSString, but it's not obvious in the WWDC version of Swift 3 …

swift nsnotificationcenter nsnotifications nsnotification swift3
removeObserver with NSNotification... what am I doing wrong?

Basically, I have a view1 which at some point, calls view2 (via presentModalViewController:animated:). When a certain UIButton in view2 …

ios objective-c nsnotification
Add 'addObserver' (NSNotificationCenter ) in a 1st view controller, handle in 2nd

I saw a few examples about adding observer and handle in the same class, but what I want to know …

ios objective-c nsnotificationcenter nsnotification observers
How do I check if an UIViewController is currently being displayed?

How do I check if an UIViewController is currently being displayed? My UIViewControllers are listening for NSNotifications - even if …

objective-c ios uiviewcontroller nsnotificationcenter nsnotification
Which is a better way to remove Notification observer

I usually use NSNotification like the sample below: In viewDidLoad: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(foo:) name:kName1 object:…

iphone ios ipad nsnotification
What is NSNotification?

Can anybody explain the importance of NSNotificationCenter? Where to use them? What is the difference between NSNotificationCenter vs. AppDelegate?

iphone nsnotification
Text from UITextFieldTextDidChangeNotification

I have a UITextField with this NSNotification: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(textFieldDidChange:) name:@"UITextFieldTextDidChangeNotification" object:_searchTextField]; - (void)…

iphone objective-c uitextfield nsnotificationcenter nsnotification
Send NSNotification from classA to classB

So i have an app with an In App purchase. The In App purchase is managed in FirstViewController. When the …

objective-c ios nsnotificationcenter nsnotification
How to detect MPMoviePlayerController starts a movie?

I am using MPMoviePlayerController, how do I detect when the movie actually started playing - as opposed to when the …

ios mpmovieplayercontroller nsnotificationcenter seek nsnotification
How to create a class to send and receive events through NSNotificationCenter in Objective-C?

I need to create two classes and both should be able to send and receive the events through the NSNotificationCenter …

objective-c nsnotification nsnotificationcenter