KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have the following code that adds an observer in the loading of the view. - (void)viewDidLoad { [super viewDidLoad]; [[NSNotificationCenter defaultCenter] addObserverForName:@"com.app.livedata.jsonupdated" object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notif) { NSLog(@"JSONUPDATED"); }]; } And this fires fine. However when the view is unloaded and I confirm the dealloc is called the Notification is still firing. There doesn't seem to be a method for deactivating this observer?
Tags (comma-separated)
Save Edits
Cancel