Removing all notification observer from a single place

You can remove an object from the notification center all together which means no notifications will get triggered. For example, when I have a view controller that has registered for notifications, I include this line in my dealloc.

[[NSNotificationCenter defaultCenter] removeObserver:self];

This is at the object level…so it will unregister for many notifications. It won’t unregister for one notification in many objects.

Hope I understood your question correctly.

Leave a Comment

tech