summaryrefslogtreecommitdiff
path: root/Juick/NewPostViewController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/NewPostViewController.m')
-rw-r--r--Juick/NewPostViewController.m16
1 files changed, 14 insertions, 2 deletions
diff --git a/Juick/NewPostViewController.m b/Juick/NewPostViewController.m
index 9e3db14..8c8fbf0 100644
--- a/Juick/NewPostViewController.m
+++ b/Juick/NewPostViewController.m
@@ -33,11 +33,23 @@
}
- (void) cancelCompose {
- [self.navigationController popViewControllerAnimated:YES];
+ CATransition* transition = [CATransition animation];
+ transition.duration = 0.3;
+ transition.type = kCATransitionFade;
+ transition.subtype = kCATransitionFromTop;
+
+ [self.navigationController.view.layer addAnimation:transition forKey:kCATransition];
+ [self.navigationController popViewControllerAnimated:NO];
}
- (void) doneCompose {
- [self.navigationController popToRootViewControllerAnimated:YES];
+ CATransition* transition = [CATransition animation];
+ transition.duration = 0.3;
+ transition.type = kCATransitionFade;
+ transition.subtype = kCATransitionFromTop;
+
+ [self.navigationController.view.layer addAnimation:transition forKey:kCATransition];
+ [self.navigationController popToRootViewControllerAnimated:NO];
}
- (void)didReceiveMemoryWarning