大家好,又见面了,我是全栈君。
UIKIT_EXTERN NSString *const UIApplicationDidReceiveMemoryWarningNotification;
内存警告能够写在
– (void)didReceiveMemoryWarning
{
}
方法中,可是在通知中实现效率更高,警告的方法运行顺序在通知之后
[[NSNotificationCenter defaultCenter ]addObserver:self selector:@selector(memoryWarning) name:UIApplicationDidReceiveMemoryWarningNotification object:nil];
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/116066.html原文链接:https://javaforall.cn