Merge pull request #65 from jhabdas/master
Remove Notification Center observers on dealloc
This commit is contained in:
commit
6e4d4b0be2
@ -69,6 +69,11 @@ static NSString *const statusKeyPath = @"status";
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||
}
|
||||
|
||||
#pragma mark - App lifecycle handlers
|
||||
|
||||
- (void)applicationWillResignActive:(NSNotification *)notification
|
||||
|
Loading…
Reference in New Issue
Block a user