title: How to get iPhone screen size programmatically?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3635483/how-to-get-screen-size-using-code">How to get screen size using code?</a>  </p>
  </blockquote>
  
  
  
  <pre><code> NSLog(@"Top Left View : Width %f height%f",self.topLeftView.frame.size.width,self.topLeftView.frame.size.height);
  </code></pre>
  
  <p>I have dragged the "View" from object library and put it on xib file.</p>
  
  <p>But what if I want to get the screen size to check whether its iphone 4,iPhone 3 or iphone 5 or any iOS Device.</p>
  
  <p>So that I can arrange other views accordingly.</p>