title: Why does NSLog() not do anything if it's after a method's return?
body: <p>I noticed that when my method runs, nothing is printed to the console: </p>
  
  <pre><code>- (BOOL)theTemporyFunction
  {
      return YES;
      NSLog(@"Events");
  }
  </code></pre>
  
  <p>but when I change the order of the statements:</p>
  
  <pre><code>- (BOOL)theTemporyFunction
  {
      NSLog(@"Events");
      return YES;
  }
  </code></pre>
  
  <p>the <code>NSLog()</code> does run.</p>
  
  <p>Both versions compile, so why doesn't <code>NSLog()</code> seem to work in the first?</p>