exclude iPad mini device Titanium iOS

318 views Asked by At

I have created an iOS app in Titanium. I tried running the app on the simulators(6.1 and 5.1) and it works fine. However, when I run it on the iPad mini device it gets messed up.

Since, I have to submit the ap in the next 2-3 days; I ahve thought of excluding iPad mini from the app itself.

My app should not run on iPad mini. Is there a way to do that using XCode or Titanium.

1

There are 1 answers

0
DHennrich On

try to run your app on your ipad mini and make this code to get the ipad mini ID

Ti.API.info( Ti.Platform.model )

it should return's you the model of ipad... then you can make an if to know if the current device is a ipad mini or not... if it is you display a screen saying that the app isn't supported for ipad mini yet.