I have two HTML files on my www
folder using the PhoneGap framework. The iPhone/iPod one(/mobile/index.html
) and the iPad one(/index.html
). So I'm using this code at my AppDelegate.m
:
+ (NSString*) startPage
{
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
return @"index.html";
} else {
return @"mobile/index.html";
}
}
And edited my Targeted Device Family
to iPhone/iPad
.
But for some reason it won't work. When I put it on my iPad it still put the application on compatibility mode. What should I do?
Try the following:
Not sure that's what you're missing. But, if you haven't done it yet, it couldn't hurt.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With