Cocoa touch 应用程序没有进入后台功能

Cocoa touch 应用程序没有进入后台功能,cocoa-touch,nstimer,uiapplicationdelegate,Cocoa Touch,Nstimer,Uiapplicationdelegate,嘿,我的firstViewController中有一个非常低的间隔计时器,我想在应用程序进入后台时终止它,但是我应该如何从函数所在的应用程序AppDelegate文件访问它呢。我知道这是一个非常愚蠢的问题,但我非常感谢你的帮助。谢谢 在您的firstViewController中,您将监听 在firstViewController初始化方法中: - (void)addObserver:(id)notificationObserver selector:(SEL)notificationSelec

嘿,我的firstViewController中有一个非常低的间隔计时器,我想在应用程序进入后台时终止它,但是我应该如何从函数所在的应用程序AppDelegate文件访问它呢。我知道这是一个非常愚蠢的问题,但我非常感谢你的帮助。谢谢

在您的firstViewController中,您将监听

在firstViewController初始化方法中:

- (void)addObserver:(id)notificationObserver selector:(SEL)notificationSelector name:(NSString *)notificationName object:(id)notificationSender