内存不足会阻止模态视图控制器的显示吗?

发布于 2024-10-05 21:27:34 字数 395 浏览 0 评论 0原文

我有一个视图控制器,我想以模式方式呈现,但它不会出现。我认为这是因为在图像选择器中我在控制台中看到了这一点:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苍风燃霜 2024-10-12 21:27:34

简短的回答:不!

当内存警告未得到处理并且内存变得如此低以致于内存分配失败时,应用程序崩溃。内存警告级别 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文