Search code examples
iphonehtmluiwebviewuniversal

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.


Solution

  • you can use this...

    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)//if device is ipad
    {
    
    }
    else   //if device is iPhone
    {
    
    
    }