diff options
Diffstat (limited to 'Juick/ViewControllers/DiscoverViewController.m')
-rw-r--r-- | Juick/ViewControllers/DiscoverViewController.m | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Juick/ViewControllers/DiscoverViewController.m b/Juick/ViewControllers/DiscoverViewController.m index afbf32e..110d8c7 100644 --- a/Juick/ViewControllers/DiscoverViewController.m +++ b/Juick/ViewControllers/DiscoverViewController.m @@ -14,12 +14,12 @@ @interface DiscoverViewController () +@property(nonatomic, strong) AppDelegate *appDelegate; + @end @implementation DiscoverViewController -AppDelegate *appDelegate; - -(void) viewDidLoad { [super viewDidLoad]; self.messagesDelegate = self; @@ -45,7 +45,7 @@ AppDelegate *appDelegate; } [self refreshData:NO]; } - appDelegate = (AppDelegate *) [UIApplication sharedApplication].delegate; + self.appDelegate = (AppDelegate *) [UIApplication sharedApplication].delegate; } -(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { @@ -58,10 +58,10 @@ AppDelegate *appDelegate; if ([segue.identifier isEqual: @"threadViewSegue"]) { NSNumber *mid; BOOL scrollToEnd = NO; - if (appDelegate.pushedThread != nil) { - mid = [appDelegate.pushedThread copy]; - appDelegate.pushedThread = nil; - appDelegate.pushedUname = nil; + if (self.appDelegate.pushedThread != nil) { + mid = [self.appDelegate.pushedThread copy]; + self.appDelegate.pushedThread = nil; + self.appDelegate.pushedUname = nil; scrollToEnd = YES; } else { Message *msg = [self.messages objectAtIndex:[self.tableView indexPathForSelectedRow].row]; |