UIKIT_EXTERN NSString *const UIApplicationDidReceiveMemoryWarningNotification;
内存警告可以写在
- (void)didReceiveMemoryWarning
{
}
方法中,但是在通知中实现效率更高,警告的方法执行顺序在通知之后
[[NSNotificationCenter defaultCenter ]addObserver:self selector:@selector(memoryWarning) name:UIApplicationDidReceiveMemoryWarningNotification object:nil];
版权声明:本文为博主原创文章,未经博主允许不得转载。
原文地址:http://blog.csdn.net/u010438187/article/details/46799933