summaryrefslogtreecommitdiff
path: root/Juick/NewPostViewController.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2013-11-07 11:01:08 +0400
committerGravatar Vitaly Takmazov2013-11-07 11:01:08 +0400
commit8c69b5408e5d2870d60f15662f1d567e6cd55da7 (patch)
tree563a9e95a376be23789985f680158c70461fdc22 /Juick/NewPostViewController.m
parentb3eaef8a304ce89242c649cfd0386a66e463acb2 (diff)
NewPostViewController stub
Diffstat (limited to 'Juick/NewPostViewController.m')
-rw-r--r--Juick/NewPostViewController.m49
1 files changed, 49 insertions, 0 deletions
diff --git a/Juick/NewPostViewController.m b/Juick/NewPostViewController.m
new file mode 100644
index 0000000..9e3db14
--- /dev/null
+++ b/Juick/NewPostViewController.m
@@ -0,0 +1,49 @@
+//
+// 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 {
+ [self.navigationController popViewControllerAnimated:YES];
+}
+
+- (void) doneCompose {
+ [self.navigationController popToRootViewControllerAnimated:YES];
+}
+
+- (void)didReceiveMemoryWarning
+{
+ [super didReceiveMemoryWarning];
+ // Dispose of any resources that can be recreated.
+}
+
+@end