Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying To Make My App Universal

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?

like image 927
Nathan Campos Avatar asked Oct 25 '22 13:10

Nathan Campos


1 Answers

Try the following:

  • Select your target.
  • Click on the Project menu & choose "Upgrade Current Target for iPad."
  • In the dialog box that comes up, you're given two choices. Select "One Universal Application."

Not sure that's what you're missing. But, if you haven't done it yet, it couldn't hurt.

like image 199
salo.dm Avatar answered Nov 04 '22 19:11

salo.dm