在ios应用下嵌套一个cocos creater生成的web Moble程序。------如何及时清理内存@creator开发团队

NSString *filePath = [[NSBundle mainBundle]pathForResource:@“web-mobile/index” ofType:@“html”];
NSString *htmlString = [NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:nil];

myWebView = [[UIWebView alloc] initWithFrame:self.view.bounds];
myWebView.delegate = self;
[self.view addSubview:myWebView];

[myWebView loadHTMLString:htmlString baseURL:[NSURL URLWithString:filePath]];

这样创建的webview

销毁的时候内存不是一下就下降下来的。。。。如何当关掉web页的时候直接杀掉内存

别沉贴啊。。。很急在线等

没人知道的人吗?

没人知道的人吗?

1赞

[quote=“chen8904, post:4, topic:43357”]
没人知道的人吗?
[/quote]没人知道的人吗?

你把网页关掉就不占内存了吧,没听说过页面都不存在了,还能占用内存

1赞

正解!!!!!!!!!!!!