title: How to fit UITableview with iPhone 5 screen size?
body: <p>I have tried the solution from image in this <a href="https://stackoverflow.com/questions/7678910/uitableviewcontroller-last-row-cut-off">post</a>. However, it only works when the screen is first loaded, when the app goes back to that screen again from the screen's child, it goes back to cut off tableview.</p>
  
  <p>After I NSLog the tableview height in viewWillAppear:</p>
  
  <pre><code>340.00 (tableview first loaded)
  245.00 (tableview re-appeared)
  </code></pre>
  
  <p>Is there anything I miss?</p>
  
  <p>I also tried to add</p>
  
  <pre><code>tableResult.autoresizingMask &amp;= ~UIViewAutoresizingFlexibleBottomMargin;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>tableResult.autoresizingMask = UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleHeight ;
  </code></pre>
  
  <p>but none of them works.</p>