title: How to detect app is running on simulator or device
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5775420/programmatically-detect-if-app-is-being-run-on-device-or-simulator">Programmatically detect if app is being run on device or simulator</a>  </p>
  </blockquote>
  
  
  
  <p>How can I detect whether my app is running on Simulator or on Device via code.</p>