Remove Notification Center observers on dealloc
This commit is contained in:
parent
d7d4ebdc7a
commit
54ea11badd
@ -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