开发者

Will low memory prevent a modal view controller from being displayed?

开发者 https://www.devze.com 2023-01-28 08:31 出处:网络
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:

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开发者_C百科 another modal view controller.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号