From c623f12b2d5e95708a3971e642410c9098f71285 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 1 Apr 2018 23:03:29 +0300 Subject: fix navigation --- Juick/ViewControllers/DiscoverViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Juick/ViewControllers/DiscoverViewController.m') diff --git a/Juick/ViewControllers/DiscoverViewController.m b/Juick/ViewControllers/DiscoverViewController.m index fde23ee..11010ae 100644 --- a/Juick/ViewControllers/DiscoverViewController.m +++ b/Juick/ViewControllers/DiscoverViewController.m @@ -75,7 +75,7 @@ AppDelegate *appDelegate; } - (IBAction)filterAction:(id)sender { if (![User isAuthenticated]) { - [self performSegueWithIdentifier:@"loginSegue" sender:self]; + [self.navigationController performSegueWithIdentifier:@"loginSegue" sender:self.navigationController]; return; } UIAlertController *filterAlert = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:UIAlertControllerStyleActionSheet]; -- cgit v1.2.3