Block apps from iPad

For an app I'm making for a client it is very important that the app can't be run on an iPad. Up until now I thought that doing a build for just iPhone meant that it couldn't be ran on an iPad however now I own one I can now see that they do run in a windowed mode.

Is there anyway to block an app from being installed on an iPad? I know I can just put a test in to check the model type when the app is ran and then act accordingly but was hoping for something before then. Does Apple actually allow the blocking of an app from a specific device type?

Hey BAFTA,

This isn't something I know a great deal about but I believe that if you look in Info.plist and set UIDeviceFamily to 1, it should prevent it being on the iPad. (For both it is 1,2 - for iPad only it is 2.)

The Apple Developer agreement does not allow you to block it.
See paragraph 3.3.5 of the current agreement, specifically the last line of the paragraph.

Dang, I thought it might be something like that.

views:1286 update:2011/9/28 21:38:26
corona forums © 2003-2011