title: Application Will Enter Foreground Notification and memory
body: <p>I'm adding my View Controller as a listener to <code>UIApplicationWillEnterForegroundNotification</code> in my <code>viewDidLoad</code> function (as recommended on previous questions here):</p>
  
  <pre><code>if(&amp;UIApplicationWillEnterForegroundNotification != nil)
      {
          [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(myFunc) name:UIApplicationWillEnterForegroundNotification object:nil];
      }
      }
  </code></pre>
  
  <p>The problem is that when debugging the application through Instruments it appears this line of code is extremely memory consuming. Any thoughts as to why and how to make it more effective?</p>