diff options
author | Vitaly Takmazov | 2018-04-08 11:25:34 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-04-08 11:25:34 +0300 |
commit | ed209b42205a9722be6b52fae2765ae02f244dde (patch) | |
tree | 4737855ce66422cf23ff7c8ad6d5196f5821340b | |
parent | 7ef12b194570ab105a6441f58b6b2e1ec27027e1 (diff) |
another attempt to fix push
-rw-r--r-- | Juick/AppDelegate.m | 4 | ||||
-rw-r--r-- | Juick/Supporting Files/Juick-Info.plist | 2 | ||||
-rw-r--r-- | Juick/ViewControllers/DiscoverViewController.m | 7 |
3 files changed, 5 insertions, 8 deletions
diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m index cb3b19e..b376052 100644 --- a/Juick/AppDelegate.m +++ b/Juick/AppDelegate.m @@ -85,6 +85,10 @@ NSDictionary *userInfo = response.notification.request.content.userInfo; NSLog(@"User Info : %@", userInfo); [self parseNotificationPayload:userInfo]; + UITabBarController *main = (UITabBarController *)self.window.rootViewController; + [main setSelectedIndex:0]; + UINavigationController *discover = (UINavigationController *)[main.viewControllers objectAtIndex:0]; + [discover performSegueWithIdentifier:@"threadViewSegue" sender:discover]; completionHandler(); } diff --git a/Juick/Supporting Files/Juick-Info.plist b/Juick/Supporting Files/Juick-Info.plist index 1a40853..6c2cf43 100644 --- a/Juick/Supporting Files/Juick-Info.plist +++ b/Juick/Supporting Files/Juick-Info.plist @@ -21,7 +21,7 @@ <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> - <string>54</string> + <string>55</string> <key>ITSAppUsesNonExemptEncryption</key> <false/> <key>LSApplicationCategoryType</key> diff --git a/Juick/ViewControllers/DiscoverViewController.m b/Juick/ViewControllers/DiscoverViewController.m index e94d673..483c5e2 100644 --- a/Juick/ViewControllers/DiscoverViewController.m +++ b/Juick/ViewControllers/DiscoverViewController.m @@ -47,13 +47,6 @@ AppDelegate *appDelegate; } appDelegate = (AppDelegate *) [UIApplication sharedApplication].delegate; } --(void) viewDidAppear:(BOOL)animated { - [super viewDidAppear:animated]; - - if (appDelegate.pushedThread != nil) { - [self performSegueWithIdentifier:@"threadViewSegue" sender:self]; - } -} -(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { NSString * cellIdentifier = @"messageCell"; |