mstottrop
mstottrop

Reputation: 589

Question about UIWebview and Universal Application

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.

Upvotes: 2

Views: 612

Answers (2)

Nanjunda
Nanjunda

Reputation: 11

You can use UIDevice class.

UIDevice *device = [UIDevice currentDevice];    

if ([device.model isEqualToString:@"iPad"])
{

}
else
{
}

Upvotes: 0

iAmitWagh
iAmitWagh

Reputation: 453

you can use this...

if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)//if device is ipad
{

}
else   //if device is iPhone
{


}

Upvotes: 7

Related Questions