I would like to perform some cleanup at the end of a view controller\'s life, namely to remove an NSNotificationCenter notification. Implementing dealloc<
If you really want to remove something when view goes out of scope and start when in scope, I would suggest let's do it in the controller's didAppear and didDisappear method. Even NSNotificationCenter also can remove and added back when the view appears/disappear.