title: iPhone - UIViewController class dealloc function never called
body: <p>I have an issue with a project of mine.</p>
  
  <p>I have a "Menu" UIViewController class and the dealloc function is never called.
  Most of the UI was added in Interface Builder and has no IBOutlet. </p>
  
  <p>How can I free the memory if dealloc is not called?</p>
  
  <hr>
  
  <p>I simulated an memory warning and now dealloc function was called.</p>
  
  <p>Here is an example of my code:</p>
  
  <pre><code>//first.m
  - (void) onButton
  { second *modalView = [[second alloc] init];
  [self presentModalViewController:modalView animated:YES];
  [modalView release];}
  </code></pre>
  
  <p>So, when I am in second screen and I simulate memory warning should the dealloc from the first class fire?</p>
  
  <p>Anyway, in my application no dealloc is called :(.</p>