title: Get screen size on iOS 8
body: <p>I tried <code>[[UIScreen mainScreen] bounds]</code> to get the screen size of a resizable iPhone on <code>Xcode 6</code> simulator. But it doesn't  take into account the new screen width and screen height I assign to it.</p>
  
  <p>Is there a better way to get the screen size? Even if I set the screen size to <strong>320x800</strong> the <code>[[UIScreen mainScreen] bounds]</code> returns me <code>(CGRect) $0 = origin=(x=0, y=0) size=(width=768, height=1024)</code></p>
  
  <p><img src="https://i.stack.imgur.com/y0k9k.png" alt="enter image description here"></p>