ios - didReceiveMemoryWarning : what type of memory?

标签 ios objective-c cordova uiwebview

我有一个基本的 cordova 应用程序,其中包含一些围绕 cordova 框架的 objective-c 代码。有时我有 didReceiveMemoryWarning 通知,但我不明白问题是 UIWebView 内的 javascript 还是其他。 文档说:

Your app never calls this method directly. Instead, this method is called when the system determines that the amount of available memory is low.

但我的问题是:什么类型的内存? 内存?堆分配?还有别的吗?

最佳答案

RAM,它是针对 RAM 的,如果您的应用程序在没有意识到的情况下消耗了更多内存,并且没有内存可用于处理更多线程,那么系统会调用此 didreceivememorywarning。

关于ios - didReceiveMemoryWarning : what type of memory?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43097896/

相关文章:

iphone - 如何在 iPhone 模拟器中 OTA 安装我的应用程序

twitter - PhoneGap 3.1.0 应用程序中的嵌入式 Twitter 时间线

iphone - 插入 View Controller 时应用程序崩溃

ios - 1个按钮,播放10个声音?

objective-c - iOS 企业应用的奇怪问题

iOS 错误 - CGContextRestoreGState : invalid context 0x0

android - 当我模拟 Ionic App 时它抛出 TypeError : Can't call method on undefined

ios - 从数组中动态添加 UIImageView

ios 读取 UTF-8 字符 - 重音问题

iphone - Objective C 中方法的多个部分