试图使我的应用程序通用化
|
使用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上时,它仍将应用程序置于兼容模式。我该怎么办?
没有找到相关结果
已邀请:
1 个回复
嗓瑰