title: How to get the screen width and height in iOS?
body: <p>How can one get the dimensions of the screen in iOS?</p>
  
  <p>Currently, I use:</p>
  
  <pre><code>lCurrentWidth = self.view.frame.size.width;
  lCurrentHeight = self.view.frame.size.height;
  </code></pre>
  
  <p>in <code>viewWillAppear:</code> and <code>willAnimateRotationToInterfaceOrientation:duration:</code></p>
  
  <p>The first time I get the entire screen size. The second time i get the screen minus the nav bar.</p>