How I can display an alert when I Received memory warning. Level=2 in iphone sdk(当我收到内存警告时如何显示警报.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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:当我收到内存警告时如何显示警报.iphone sdk 中的级别=2


基础教程推荐
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- iOS4 创建后台定时器 2022-01-01