diff options
Diffstat (limited to 'Juick/NewPostViewController.m')
-rw-r--r-- | Juick/NewPostViewController.m | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/Juick/NewPostViewController.m b/Juick/NewPostViewController.m deleted file mode 100644 index 8c8fbf0..0000000 --- a/Juick/NewPostViewController.m +++ /dev/null @@ -1,61 +0,0 @@ -// -// NewPostViewController.m -// Juick -// -// Created by Vitaly Takmazov on 07.11.13. -// Copyright (c) 2013 com.juick. All rights reserved. -// - -#import "NewPostViewController.h" - -@interface NewPostViewController () - -@end - -@implementation NewPostViewController - -- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil -{ - self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; - if (self) { - // Custom initialization - } - return self; -} - -- (void)viewDidLoad -{ - [super viewDidLoad]; - self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel - target:self action:@selector(cancelCompose)]; - self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone - target:self action:@selector(doneCompose)]; -} - -- (void) cancelCompose { - 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 { - 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 -{ - [super didReceiveMemoryWarning]; - // Dispose of any resources that can be recreated. -} - -@end |