试图使我的应用程序通用化

| 使用PhoneGap框架的
www
文件夹中有两个HTML文件。 iPhone / iPod一部(
/mobile/index.html
)和iPad一部(
/index.html
)。因此,我在
AppDelegate.m
使用以下代码:
+ (NSString*) startPage
{
    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
        return @\"index.html\";
    } else {
        return @\"mobile/index.html\";
    }
}
并将我的
Targeted Device Family
修改为
iPhone/iPad
。 但是由于某种原因,它将无法正常工作。当我将其放在iPad上时,它仍将应用程序置于兼容模式。我该怎么办?     
已邀请:
请尝试以下操作: 选择您的目标。 单击“项目”菜单,然后选择“升级iPad的当前目标。” 在出现的对话框中,有两种选择。选择“一个通用应用程序”。 不确定那是您所缺少的。但是,如果您还没有做,那就不会受伤。     

要回复问题请先登录注册