summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers/DiscoverViewController.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-03-20 01:50:48 +0300
committerGravatar Vitaly Takmazov2019-03-20 01:50:48 +0300
commit1f3e08f107064fa429c6aa2a26702f6e63a791f0 (patch)
tree2653f4dc08edd1c69050ef6d9c800f5e12246e3a /Juick/ViewControllers/DiscoverViewController.m
parent7a1aa6e48b37f4244fd5887ea7a1d15dd6fb7768 (diff)
[AppDelegate shared]
Diffstat (limited to 'Juick/ViewControllers/DiscoverViewController.m')
-rw-r--r--Juick/ViewControllers/DiscoverViewController.m10
1 files changed, 4 insertions, 6 deletions
diff --git a/Juick/ViewControllers/DiscoverViewController.m b/Juick/ViewControllers/DiscoverViewController.m
index 092c19c..27b273b 100644
--- a/Juick/ViewControllers/DiscoverViewController.m
+++ b/Juick/ViewControllers/DiscoverViewController.m
@@ -16,7 +16,6 @@
@interface DiscoverViewController ()
-@property(nonatomic, strong) AppDelegate *appDelegate;
@property NSString *selectedUser;
@end
@@ -49,7 +48,6 @@
[self refreshData];
}
[super viewDidLoad];
- self.appDelegate = (AppDelegate *) [UIApplication sharedApplication].delegate;
}
-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
@@ -76,10 +74,10 @@
if ([segue.identifier isEqual: @"threadViewSegue"]) {
NSNumber *mid;
BOOL scrollToEnd = NO;
- if (self.appDelegate.pushedThread != nil) {
- mid = [self.appDelegate.pushedThread copy];
- self.appDelegate.pushedThread = nil;
- self.appDelegate.pushedUname = nil;
+ if ([AppDelegate shared].pushedThread != nil) {
+ mid = [[AppDelegate shared].pushedThread copy];
+ [AppDelegate shared].pushedThread = nil;
+ [AppDelegate shared].pushedUname = nil;
scrollToEnd = YES;
} else {
Message *msg = [self.messages objectAtIndex:[self.tableView indexPathForSelectedRow].row];