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 /Juick/AppDelegate.m | |
parent | 7ef12b194570ab105a6441f58b6b2e1ec27027e1 (diff) |
another attempt to fix push
Diffstat (limited to 'Juick/AppDelegate.m')
-rw-r--r-- | Juick/AppDelegate.m | 4 |
1 files changed, 4 insertions, 0 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(); } |