2
我的应用程序是一个基于标签栏的应用程序,包括6个选项卡。当我收到内存警告时,除1个视图控制器外,所有5个视图控制器didReceiveMemoryWarning
都会被调用。所以我在像这样的视图控制器注册UIApplicationDidReceiveMemoryWarningNotification:didReceiveMemoryWarning没有被调用 - UITabBarViewController应用程序
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(didReceiveMemoryWarning)
name:UIApplicationDidReceiveMemoryWarningNotification
object:nil];
然而,这种视图控制器的didReceiveMemoryWarning
方法不叫。我错过了什么吗?
但我的应用程序仍然崩溃。 – Dee
@迪:那崩溃呢?它在哪里崩溃?你没有谈论这个...... – Oliver
我必须在电子邮件中附加3张图片。所以当我连续做这个动作时,它就会崩溃。图像尺寸如下:2张图片尺寸为{700,385},第三张图片为{768×2933}。 – Dee