【发布时间】:2012-02-03 19:20:23
【问题描述】:
我使用 WebViewController 访问应用程序中的某些 URL。 现在我发现每次使用 WebViewController 时应用程序的大小都会慢慢增加。 这是在 iPhone 使用情况下检查应用程序大小时,该特定应用程序的文档和数据在每次使用时都会增加。该应用程序在安装时可能为 2 Mb,但经过大量使用后,它可能很容易增加到 25 Mb。关闭应用时如何释放指纹??
当调用 WebViewController 时,它的外观是这样的。
- (void) showURL:(NSURL *)address withTitle:(NSString *)title
{
MyWebViewController *vc = [[MyWebViewController alloc] initWithNibName:@"MyWebViewController" bundle:nil];//ny
vc.title = title;
vc.location = address;
[self.navigationController pushViewController:vc animated:YES];
[vc release];
}
h。 WebWiewController 中的文件在其内容中有这个。
NSURL *location;
IBOutlet UIWebView *theWebView;
m.file 有这个
- (void)viewDidLoad
{
[super viewDidLoad];
[theWebView loadRequest:[NSURLRequest requestWithURL:location]];
}
【问题讨论】:
标签: iphone xcode url webview document