关于UIWebview和通用应用程序的问题 [英] Question about UIWebview and Universal Application

查看:75
本文介绍了关于UIWebview和通用应用程序的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个通用应用程序,我的问题是,如果可以根据iDevice在我的UIWebview中加载两个不同的HTML文件。

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.

推荐答案

您可以使用此...

you can use this...

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

}
else   //if device is iPhone
{


}

这篇关于关于UIWebview和通用应用程序的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆