Try this...
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(addAnimation:) name:UIApplicationWillEnterForegroundNotification object:nil];
}
//How to remove an observer for NSNotification
[[NSNotificationCenter defaultCenter] removeObserver:self];