title: Detect iOS device type
body: <p>In my application (written in Objective-C), how do I detect if the device is an iPhone, iPad, or iPhone5?</p>
  
  <pre><code>if([[UIDevice currentDevice]userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
      // [iphone] or [itouch]
  } else {
      // [ipad]
  }
  </code></pre>