Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Merge branch 'TTPostControllerFix' of https://github.com/echamberlain…
Browse files Browse the repository at this point in the history
…/three20 into development

Closes #442.
  • Loading branch information
jverkoey committed Mar 4, 2011
2 parents 69d11d0 + 349b49e commit 219417e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/Three20UI/Sources/TTPostController.m
Expand Up @@ -204,6 +204,8 @@ - (void)layoutTextEditor {
///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)showAnimationDidStop {
_textView.hidden = NO;

[self.superController viewDidDisappear:YES];
}


Expand Down Expand Up @@ -246,7 +248,10 @@ - (void)dismissWithCancel {
[_delegate postControllerDidCancel:self];
}

[self dismissPopupViewControllerAnimated:YES];
BOOL animated = YES;

[self.superController viewWillAppear:animated];
[self dismissPopupViewControllerAnimated:animated];
}


Expand Down Expand Up @@ -368,6 +373,9 @@ - (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];
Expand Down Expand Up @@ -441,7 +449,6 @@ - (void)dismissPopupViewControllerAnimated:(BOOL)animated {
[self.view removeFromSuperview];
[self release];
superController.popupViewController = nil;
[superController viewWillAppear:animated];
[superController viewDidAppear:animated];
}
}
Expand Down Expand Up @@ -532,6 +539,8 @@ - (void)dismissWithResult:(id)result animated:(BOOL)animated {
[_result release];
_result = [result retain];

[self.superController viewWillAppear:animated];

if (animated) {
if ([_delegate respondsToSelector:@selector(postController:willAnimateTowards:)]) {
CGRect rect = [_delegate postController:self willAnimateTowards:_originRect];
Expand Down

0 comments on commit 219417e

Please sign in to comment.