应用程序将输入前台通知和内存

| 我正在将我的View Controller作为侦听器添加到我的
viewDidLoad
函数中的
UIApplicationWillEnterForegroundNotification
中(如此处先前问题的建议):
if(&UIApplicationWillEnterForegroundNotification != nil)
    {
        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(myFunc) name:UIApplicationWillEnterForegroundNotification object:nil];
    }
    }
问题是,通过仪器调试应用程序时,似乎这行代码非常消耗内存。关于为什么以及如何使其更有效的任何想法?     
已邀请:

要回复问题请先登录注册