OGeek|极客世界-中国程序员成长平台

标题: ios - didReceiveMemoryWarning : what type of memory? [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 13:16
标题: ios - didReceiveMemoryWarning : what type of memory?

我有一个基本的 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.

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



Best Answer-推荐答案


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

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






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4