Skip to content

Commit

Permalink
fixed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
graetzer committed Sep 24, 2012
1 parent 43ef554 commit 7e1c568
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/SGTabsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ - (id)init {
return self;
}

- (void)dealloc {
for (UIViewController *viewC in self.tabContents) {
[viewC removeObserver:self forKeyPath:@"title"];
}
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
Expand Down

0 comments on commit 7e1c568

Please sign in to comment.