iOS 4.3 : How to handle the logging message: "Received memory warning. Level=1"?

标签 ios memory warnings

我为我的 iPhone 创建了一个小应用程序。当我在我的设备上运行它时,输出控制台有时会记录消息

Received memory warning. Level=1 Memory-Warnung

嗯,我想这可能是由于一些未释放的内存,但我不确定。所以我的问题是:是否有可能追踪到这条消息的来源?

是否有工具可以分析我的程序,以便找出显示此消息的原因?

最佳答案

使用仪器(产品菜单 -> 配置文件)并测试泄漏。如果检测到泄漏,请清除它们,看看是否收到更多内存警告。如果是,请测试分配,查看内存使用最多的内容并尝试优化内存使用。

关于iOS 4.3 : How to handle the logging message: "Received memory warning. Level=1"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6116061/

相关文章:

ios - 重置 iOS 应用程序的相机权限?

linux - 内核空间是否映射到 Linux x86 上的用户空间?

node.js - 检查node.js中分配的最大内存大小

xcode/clang : clang: warning: argument unused during compilation: '-fcheck-new'

android - 如何使用 Cordova/Ionic 将图像裁剪成特定的纵横比?

iphone - 如何在没有 NavigationController 的情况下推送子 ViewController?

iphone - MKCoordinateRegionMakeWithDistance 没有在 MapView 上设置正确的区域

memory - 在幕后,Rust 中的向量是通过引用还是值返回的?

c++ - 为什么这种比较总是正确的?

python - Pandas SettingWithCopyWarning