在我的应用程序中,用户可以向视图添加任意数量的图像.如果他尝试添加更多内存大小更大的图像,应用程序会收到内存警告.所以我想在收到内存警告级别= 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!