title: where should i put removeObserver in AppDelegate.m, ios
body: <p>My AppDelegate class is registered for a particular notification like below</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  
      {
  
          [[NSNotificationCenter defaultCenter] addObserver:self
                                                   selector:@selector(applyThemeA:)
                                                       name:@"ThemeA"
                                                     object:nil];
  
      }
  </code></pre>
  
  <p>And applyThemeA does ( just not much )</p>
  
  <pre><code>- (void)appleThemeA:(NSNotification*)notification {
      NSLog(@"apply themeA");
  }
  </code></pre>
  
  <p>I am placing <code>removeObserver</code> in <code>applicationWillTerminate</code>, but not so sure it is a good way for it.</p>
  
  <p><strong>Question</strong></p>
  
  <blockquote>
    <p>Is it a good place to place this method in.</p>
  </blockquote>
  
  <p>I just wanna make sure I am doing the right way. If the question is not appropriate, please dont down vote.Just let me know. Thanks</p>