title: IPhone/IPad: How to get screen width programmatically?
body: <p>Hi I'm wondering if there's a way to get the width programmatically. </p>
  
  <p>I'm looking for something general enough to accomodate iphone 3gs, iphone 4, ipad. Also, the width should change based on if the device is portrait or landscape (for ipad).</p>
  
  <p>Anybody know how to do this?? I've been looking for a while... thanks! </p>