Top "Nsnotificationcenter" questions

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

NSUserDefaultsDidChangeNotification: What's the name Of the Key, that Changed?

This code will call the method "defaultsChanged", when some value in UserDefaults changed NSNotificationCenter *center = [NSNotificationCenter defaultCenter]; [center addObserver:self …

objective-c ios xcode nsuserdefaults nsnotificationcenter
Swift 3 - How to use enum raw value as NSNotification.Name?

I'm using Xcode 8 beta 5 and I'm trying to setup an enum of notifications like this enum Notes: String { case note1 …

xcode enums nsnotificationcenter swift3
thumbnailImageAtTime: now deprecated - What's the alternative?

Until iOS7 update I was using... UIImage *image = [moviePlayer thumbnailImageAtTime:1.0 timeOption:MPMovieTimeOptionNearestKeyFrame]; ...with great success, so that my app could …

image video ios7 deprecated nsnotificationcenter
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
Type 'NSNotification.Name' has no member 'UITextField'

With Swift 4.2, getting following error, that was working fine with Swift 4. Type 'NSNotification.Name' has no member 'UITextField' Here is …

ios nsnotificationcenter swift4.2
How do I debug this error: CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER?

I am getting an error in my app that I have no idea of how to figure out, has anyone …

ios objective-c nsnotificationcenter
NotificationCenter to pass data in Swift

I am working on a test project in Swift 3. I am trying to pass textField string from one class to …

ios swift uiviewcontroller nsnotificationcenter
NSNotificationCenter Observer Not Receiving Notification

I am aware of the standard reasons as to why a notification would not be received: Deallocating or nullifying the …

ios nsnotificationcenter nsnotifications
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 write unit test for NSNotification

I am working in swift, I want to refresh a page so I am sending it using notification, I am …

ios unit-testing swift ios8 nsnotificationcenter