Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix bug where the view was not removed when it should be.

  • Loading branch information...
commit 605f67f191e40f9380259c2c5f064c8e7ff8c4bd 1 parent d53f8de
@mbaltaks authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  Classes/MGSplitViewController.m
View
1  Classes/MGSplitViewController.m
@@ -1004,6 +1004,7 @@ - (void)setDetailViewController:(UIViewController *)detail
if ([_viewControllers objectAtIndex:1] == detail) {
changed = NO;
} else {
+ [[self detailViewController].view removeFromSuperview];
[_viewControllers replaceObjectAtIndex:1 withObject:detail];
}
Please sign in to comment.
Something went wrong with that request. Please try again.