iPhone应用程序使用150 MB内存,仍然没有低内存警告! [英] iPhone app uses 150 MB memory and still no low memory warning!
问题描述
我有一个问题应用程序,基于导航,我创建并每次从笔尖推送我的tableviews。没有泄漏,在仪器中实时字节似乎大约2-3 MB。
I have a questionary application, navigation based which I create and push my tableviews eachtime from a nib. there is no leakage and in instruments live bytes seems around 2-3 MB.
我在真实设备(越狱IOS4 iPhone)中测试,当我在导航中深入(大约200页推送)我可以看到内存使用量高达150 MB!当我导航回root时,他们都被释放了,但这不是一个奇怪的行为吗? (每个笔尖视图大约800 KB,其中没有大数据或图像)
I tested in real device (jailbroken IOS4 iPhone), when I go through deep in the navigation (around 200 page pushes) I can see that memory usage goes upto 150 MB! when I navigate back to root then they are all freed, but isnt this a weird behavior? (around 800 KB for each nib view and no big data or images in it)
最奇怪的是,我对didreceivememorywarning和didunloadview方法发出了一些警报,但是没有收到任何内存警报!
The most weird thing is, I put some alerts to didreceivememorywarning and didunloadview methods, and yet didnt receive any memory alerts!
- 为什么我从来没有得到任何内存警告和viewDidUnload甚至应用程序使用150 MB和更多的内存?
-Application有效,但这个内存使用对Apple商店来说是个问题吗?
-Why I never get any memory warning and viewDidUnload even the app uses 150 MB and more of memory? -Application works but is this memory usage a problem for Apple store?
推荐答案
我只是添加了self.view =在viewDidDisappear方法中,它可以工作,我可以恢复,现在好多了。 tnx Felz的帮助
I just add self.view=nil in viewDidDisappear method, it works and I can recover back, much better now. tnx Felz for the help
这篇关于iPhone应用程序使用150 MB内存,仍然没有低内存警告!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!