 <p>Use UIDevice Macros - <a href="http://d3signerd.com/tag/uidevice/" rel="nofollow">http://d3signerd.com/tag/uidevice/</a></p> <p>Then you can write code like;</p> <pre><code>if ([DEVICE_TYPE isEqualToString:DEVICE_IPAD]) { } </code></pre> <p>or </p> <pre><code>if (IS_SIMULATOR &amp;&amp; IS_RETINA) { } </code></pre>