内存不足会阻止模态视图控制器的显示吗?
我有一个视图控制器,我想以模式方式呈现,但它不会出现。我认为这是因为在图像选择器中我在控制台中看到了这一点:
2010-12-06 22:44:28.076 AppName[2084:307] Received memory warning. Level=1
2010-12-06 22:45:09.047 AppName[2084:307] Received memory warning. Level=2
2010-12-06 22:44:09.234 AppName[2084:307] Received memory warning. Level=1
低内存分配或使用大内存分配是否会阻止显示模态视图控制器?
另外 - 值得注意的是,这个模态视图控制器是从另一个模态视图控制器呈现的。
I have a view controller that I would like to present in a modal fashion, but it will not appear. I think it's because whilst in the Image Picker I see this in the console:
2010-12-06 22:44:28.076 AppName[2084:307] Received memory warning. Level=1
2010-12-06 22:45:09.047 AppName[2084:307] Received memory warning. Level=2
2010-12-06 22:44:09.234 AppName[2084:307] Received memory warning. Level=1
Does low or using large memory allocations prevent modal view controllers from being presented?
Also - its noteworthy to say that this modal view controller is being presented from another modal view controller.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简短的回答:不!
当内存警告未得到处理并且内存变得如此低以致于内存分配失败时,应用程序崩溃。内存警告级别 2 确实非常接近这一点。
Short Answer : NO !.
When memory warning are not handled and memory become so low that memory allocation failed, the application crashes. Memory Warning Level 2 is really really close to that point.