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
基础教程推荐
- 如何将图像从一项活动发送到另一项活动? 2022-01-01
- iOS - UINavigationController 添加多个正确的项目? 2022-01-01
- 为什么姜饼模拟器方向卡在应用程序中? 2022-01-01
- SwiftUI-ScrollViewReader的ScrollTo不滚动 2022-01-01
- Xcode UIView.init(frame:) 只能在主线程中使用 2022-01-01
- Android Volley - 如何动画图像加载? 2022-01-01
- 如何比较两个 NSDate:哪个是最近的? 2022-01-01
- UIImage 在开始时不适合 UIScrollView 2022-01-01
- Play 商店的设备兼容性问题 2022-01-01
- navigationItem.backBarButtonItem 不工作?为什么上一个菜单仍然显示为按钮? 2022-01-01
