5

我的文件www夹中有两个使用 PhoneGap 框架的 HTML 文件。iPhone/iPod one( /mobile/index.html) 和 iPad one( /index.html)。所以我在我的使用这个代码AppDelegate.m

+ (NSString*) startPage
{
    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
        return @"index.html";
    } else {
        return @"mobile/index.html";
    }
}

并将我的编辑Targeted Device FamilyiPhone/iPad.

但由于某种原因,它不起作用。当我把它放在我的 iPad 上时,它仍然将应用程序置于兼容模式。我该怎么办?

4

1 回答 1

3

尝试以下操作:

  • 选择你的目标。
  • 单击项目菜单并选择“升级 iPad 的当前目标”。
  • 在出现的对话框中,您有两个选择。选择“一个通用应用程序”。

不确定这就是你所缺少的。但是,如果你还没有这样做,它不会受到伤害。

于 2011-04-23T03:13:15.583 回答