Permalink
Browse files

Fix TTPostController showInView:animated: to call superController's v…

…iewWillDisappear: and viewDidDisappear: methods.
  • Loading branch information...
1 parent 532e107 commit a24c75fe85179ea93dde7acb6084a14616e9c187 Eric Chamberlain committed Feb 14, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/Three20UI/Sources/TTPostController.m
@@ -367,6 +367,7 @@ - (void)restoreView:(NSDictionary*)state {
///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)showInView:(UIView*)view animated:(BOOL)animated {
[self retain];
+ [self.superController viewWillDisappear:animated];
UIWindow* window = view.window ? view.window : [UIApplication sharedApplication].keyWindow;
self.view.transform = [self transformForOrientation];
@@ -422,7 +423,7 @@ - (void)showInView:(UIView*)view animated:(BOOL)animated {
[self layoutTextEditor];
[self showAnimationDidStop];
}
-
+ [self.superController viewDidDisappear:animated];
[self showKeyboard];
}

0 comments on commit a24c75f

Please sign in to comment.