summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers/ThreadViewController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/ViewControllers/ThreadViewController.m')
-rw-r--r--Juick/ViewControllers/ThreadViewController.m63
1 files changed, 63 insertions, 0 deletions
diff --git a/Juick/ViewControllers/ThreadViewController.m b/Juick/ViewControllers/ThreadViewController.m
new file mode 100644
index 0000000..2ee4af5
--- /dev/null
+++ b/Juick/ViewControllers/ThreadViewController.m
@@ -0,0 +1,63 @@
+//
+// ThreadViewController.m
+// Juick
+//
+// Created by Vitaly Takmazov on 24/09/2017.
+// Copyright © 2017 com.juick. All rights reserved.
+//
+
+#import "ThreadViewController.h"
+#import "ColorScheme.h"
+
+@interface ThreadViewController ()
+
+@property (nonatomic, readwrite, retain) UIView *inputAccessoryView;
+
+@end
+
+@implementation ThreadViewController
+
+- (void)viewDidLoad {
+ [super viewDidLoad];
+
+ // Uncomment the following line to preserve selection between presentations.
+ // self.clearsSelectionOnViewWillAppear = NO;
+
+ // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
+ // self.navigationItem.rightBarButtonItem = self.editButtonItem;
+}
+
+#pragma mark - Table view data source
+
+- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
+#warning Incomplete implementation, return the number of sections
+ return 0;
+}
+
+- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
+#warning Incomplete implementation, return the number of rows
+ return 0;
+}
+
+
+- (BOOL) canBecomeFirstResponder {
+ return YES;
+}
+
+- (UIView *)inputAccessoryView {
+ if (!_inputAccessoryView) {
+ CGRect viewBounds = self.view.bounds;
+ CGRect frame = CGRectMake(0, viewBounds.size.height - PHFComposeBarViewInitialHeight, viewBounds.size.width,
+ PHFComposeBarViewInitialHeight);
+ PHFComposeBarView *_view = [[PHFComposeBarView alloc] initWithFrame:frame];
+ _view.backgroundColor = [UIColor whiteColor];
+ _view.buttonTintColor = [ColorScheme linkColor];
+ _view.maxLinesCount = 4;
+ _view.utilityButtonImage = [UIImage imageNamed:@"Camera"];
+ _view.delegate = self;
+ _inputAccessoryView = _view;
+ }
+ return _inputAccessoryView;
+}
+
+@end