首页 > 其他 > 详细

关于内存警告

时间:2016-02-03 12:40:29      阅读:144      评论:0      收藏:0      [点我收藏+]

UIKIT_EXTERN NSString *const UIApplicationDidReceiveMemoryWarningNotification;

内存警告能够写在

- (void)didReceiveMemoryWarning

{

    

}

方法中,可是在通知中实现效率更高,警告的方法运行顺序在通知之后

[[NSNotificationCenter defaultCenter ]addObserver:self selector:@selector(memoryWarning) name:UIApplicationDidReceiveMemoryWarningNotification object:nil];



关于内存警告

原文:http://www.cnblogs.com/yxwkf/p/5179391.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!