我收到内存警告时如何显示警报。在iphone sdk中等级= 2 [英] How I can display an alert when I Received memory warning. Level=2 in iphone sdk

查看:84
本文介绍了我收到内存警告时如何显示警报。在iphone sdk中等级= 2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,用户可以向视图添加任意数量的图像。如果他试图添加更大内存大小的图像,应用程序会收到内存警告。所以我想显示一个警告,在收到内存警告级别= 2后不添加图像。是否可以
如果是这样请帮助我。
谢谢

In my application the user can add any number of images to the view. If he tries to add more images of bigger in memory size the application receives memory warning . So I want to display an alert to don't add images after receiving memory warning level = 2. Is it possible If so please help me. Thank You

推荐答案

为了用户体验,不显示提醒。处理内存是您的责任,而不是您用户的责任。

For User Experience sake, don't display an alert. Handling memory is your responsibility and not that of your user.

这篇关于我收到内存警告时如何显示警报。在iphone sdk中等级= 2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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