Monotouch 读取 iPad 上剩余的 RAM [英] Monotouch Read how much RAM is left on an iPad

查看:27
本文介绍了Monotouch 读取 iPad 上剩余的 RAM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 Monotouch 或 Objective-C,我如何知道 iPad 上还剩多少内存?

Using Monotouch, or Objective-C, how do I tell how much RAM is left on an iPad?

推荐答案

据我所知,没有办法获得可用的 RAM 量.

As far as I know there is no way to get the amount of RAM available.

您可以通过订阅事件来处理内存不足警告.

You can handle low memory warnings by subscribing to an event.

在您的Main.cs"中

In your "Main.cs"

 public override void ReceiveMemoryWarning(UIApplication application)
 {
   // Do what you want to free memory
 }

不确定这是否有帮助,但鉴于缺乏答案,它可能会有所帮助.

Not sure if this helps but given the lack of answers it may prove helpful.

这篇关于Monotouch 读取 iPad 上剩余的 RAM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆