调用代码如下:
[[NSNotificationCenter defaultCenter] postNotificationName:UIApplicationDidReceiveMemoryWarningNotification
object:[UIApplication sharedApplication]];
它不能从 UIApplicationDelegate
调用 applicationDidReceiveMemoryWarning:
。
有什么问题吗?
最佳答案
在模拟器中,使用菜单触发低内存警告。
关于ios - 无法模拟调用applicationDidReceiveMemoryWarning :?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5323515/