title: Detect if iOS app hacked
body: <p>My friend got a jailbroken iPad. When he installed Business Model Generation App from Installous and tried to use it, the application showed a <code>UIAlertView</code> with the following message:
  <img src="https://i.stack.imgur.com/QHRtV.jpg" alt="Hacked Version"></p>
  
  <p>Does anybody know how to do that?</p>
  
  <p>I have 2 ideas:</p>
  
  <ol>
  <li>If there is some set flag when you download app from the App Store, then you can use this flag: if <code>flag = NO</code>, you show the <code>UIAlertView</code>.</li>
  <li>Something with a server (but in this case, you should know all device IDs and who installed your application from the App Store).</li>
  </ol>
  
  <p>Am I right? How can I implement this feature?</p>