Remove Notification Center observers on dealloc

This commit is contained in:
Josh Habdas 2015-06-26 13:41:41 -05:00
parent d7d4ebdc7a
commit 54ea11badd

View File

@ -69,6 +69,11 @@ static NSString *const statusKeyPath = @"status";
return self; return self;
} }
- (void)dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
}
#pragma mark - App lifecycle handlers #pragma mark - App lifecycle handlers
- (void)applicationWillResignActive:(NSNotification *)notification - (void)applicationWillResignActive:(NSNotification *)notification