I have a case where the child view sends notification to parent view. Now i'm calling addObserver in viewWillAppear and remove Observer in viewWillDisappear. But, i'm guessing this is not correct since viewWillAppear calls when view is refreshed.
[[NSNotificationCenter defaultCenter] addObserver:<#(id)observer#> selector:<#(SEL)aSelector#> name:<#(NSString *)aName#> object:<#(id)anObject#>]
[[NSNotificationCenter defaultCenter] removeObserver:<#(id)observer#> name:<#(NSString *)aName#> object:<#(id)anObject#>]
Thanks.