diff options
author | Vitaly Takmazov | 2018-07-19 22:57:13 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-07-19 22:57:13 +0300 |
commit | 3b28ab6dc9890740bf6e8870ad17fa412b5246a0 (patch) | |
tree | f8f9037a4617d7d4b706b7ec08cb1b726073ef38 | |
parent | caee9b0413b5b02ec4e074b72776a0cc449aec7a (diff) |
Trying to clear back stack after push notification
-rw-r--r-- | Juick/AppDelegate.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m index 9bbf567..a4932b6 100644 --- a/Juick/AppDelegate.m +++ b/Juick/AppDelegate.m @@ -88,6 +88,7 @@ if ([self.pushedThread integerValue] > 0) { [main setSelectedIndex:0]; UINavigationController *discover = (UINavigationController *)[main.viewControllers objectAtIndex:0]; + [discover popToRootViewControllerAnimated:NO]; [[discover.viewControllers objectAtIndex:0] performSegueWithIdentifier:@"threadViewSegue" sender:discover]; } else { [main setSelectedIndex:1]; |