I have an Universal Application and my question is, if it is possible to load two different html files in my UIWebview depending on the iDevice.
Thanks for any answers.
iAmitWagh
you can use this...
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)//if device is ipad
{
}
else //if device is iPhone
{
}
Nanjunda
You can use UIDevice class.
UIDevice *device = [UIDevice currentDevice];
if ([device.model isEqualToString:@"iPad"])
{
}
else
{
}
来源:https://stackoverflow.com/questions/6290782/question-about-uiwebview-and-universal-application