【发布时间】:2011-11-04 05:07:19
【问题描述】:
当我在 UIWebView 中添加 HTML 文件时,我没有得到完整大小的图像。只有四分之一的图像正在显示。我的代码是
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
[webview loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"Ganesh" ofType:@"html"]isDirectory:NO]]];
webview.delegate=self;
} 图像显示为上下颠倒。谁能帮我解决这个问题?
【问题讨论】:
-
你能展示你的示例html吗?
-
在你的html文件中试试这个
<head> <title></title> <meta name="viewport" content="width=device-width"/> </head> -
还是试过了....没有变化... :(
-
你能分享你的示例html文件吗?