What's a good place to unregister an observer from the notification center?
<p>When I add an observer to the default notification center, where would I unregister that?</p>

<p>Example: I have a UIView subclass which lives inside a view controller. That subclass is an observer for the FooBarNotification. If this notification is posted, that view will get it. But now, the view controller decides to throw away the view. Is the best place the -dealloc method of the view itself?</p>

<p>Are there any rules like memory management rules? For example: Must I unregister an observer where I registered it? i.e. the view registers itself in it's init method, so it should unregister itself in it's -dealloc method?</p>

<p>(not talking about push notifications, but NSNotificationCenter)</p>
