Skip to content

Commit

Permalink
Remove observer when view is deallocated
Browse files Browse the repository at this point in the history
  • Loading branch information
kharrison committed Oct 29, 2011
1 parent 4f690de commit a63a3cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SyncMe/SyncMe/UYLViewController.m
Expand Up @@ -93,6 +93,11 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interface
return YES;
}

- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self];
[super dealloc];
}

#pragma mark -
#pragma mark === Button Action ===
#pragma mark -
Expand Down

0 comments on commit a63a3cf

Please sign in to comment.