title: How to get the actual [UIScreen mainScreen] frame size?
body: <p>I'm a bit annoyed. I have an app with the statusbar visible in the main window. Since I would like to setup my views and their frame sizes dynamically (perhaps the status bar takes up 40 pixels during a phone call, for example).</p>
  
  <p>I can do one of the two:</p>
  
  <pre><code>[[UIScreen mainScreen] bounds];
  [[UIScreen mainScreen] applicationFrame];
  </code></pre>
  
  <p>The really annoying this is these two output two different sets of values, each equally as useless.</p>
  
  <p><code>bounds</code> will output: <code>{{0, 0}, {320, 480}}</code> while<br>
  <code>applicationFrame</code> will output <code>{{0, 20}, {320, 460}}</code></p>
  
  <p>As you can see, <code>bounds</code> gives the correct y origin (0 starts from right below the statusbar) but then gives a height of 480, which is incorrect. It should be 460, since the statusbar is visible. Then we have <code>applicationFrame</code> which starts 20 pixels below the statusbar (so there's a cap), but then gives the correct height. But that's not very useful when it's then pushed down 20 pixels anyway.</p>
  
  <p>Any help?</p>