summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-12-07 21:24:47 +0300
committerGravatar Vitaly Takmazov2017-12-07 21:24:47 +0300
commitd958ef04d427b284ccaa161a5634cd602802d415 (patch)
tree10ca5575d74b3878a77798fb35db1fc8fd01bce7 /Juick/ViewControllers
parentd856b364dea82f7b89e2040075ee32d988707edb (diff)
fix thread push
Diffstat (limited to 'Juick/ViewControllers')
-rw-r--r--Juick/ViewControllers/DiscoverViewController.m9
1 files changed, 8 insertions, 1 deletions
diff --git a/Juick/ViewControllers/DiscoverViewController.m b/Juick/ViewControllers/DiscoverViewController.m
index f5d362f..3822643 100644
--- a/Juick/ViewControllers/DiscoverViewController.m
+++ b/Juick/ViewControllers/DiscoverViewController.m
@@ -18,6 +18,14 @@
@implementation DiscoverViewController
+AppDelegate *appDelegate;
+
+-(void) viewDidLoad {
+ [super viewDidLoad];
+ appDelegate = (AppDelegate *) [UIApplication sharedApplication].delegate;
+ [self performSegueWithIdentifier:@"threadViewSegue" sender:self];
+}
+
-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NSString * cellIdentifier = @"messageCell";
MessageCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier forIndexPath:indexPath];
@@ -27,7 +35,6 @@
-(void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
if ([segue.identifier isEqual: @"threadViewSegue"]) {
NSNumber *mid;
- AppDelegate *appDelegate = (AppDelegate *) [UIApplication sharedApplication].delegate;
if (appDelegate.pushedThread != nil) {
mid = appDelegate.pushedThread;
} else {