I add observer to an UITableView property.
[tableView addObserver:self forKeyPath:@"contentSize" options:NSKeyValueObservingOptionNew context:nil];
As we all know, when UIViewController is popped -[UIViewController dealloc] method is called and -[UIViewController viewWillUnload] when it receives memory warning.
Should I remove observer in TWO places (ok, anyway I have to)? This is the code duplication at it's best. Or maybe I can call -[UIViewController viewWillUnload] in -[UIViewController dealloc] (as written in Three20 framework)? Is this approach good?