summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers/FeedViewController.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-10-02 13:59:51 +0300
committerGravatar Vitaly Takmazov2019-10-02 13:59:51 +0300
commit33539a3c9c8534776722aa1148499f984e0019e7 (patch)
tree6f47880a9efd4e6e240ff55c043422f68dba6936 /Juick/ViewControllers/FeedViewController.m
parentd9a6f5e85d9cffed7e8bf84b6e69b27d7db67582 (diff)
Move loginSegue to Tab bar controller
Diffstat (limited to 'Juick/ViewControllers/FeedViewController.m')
-rw-r--r--Juick/ViewControllers/FeedViewController.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/Juick/ViewControllers/FeedViewController.m b/Juick/ViewControllers/FeedViewController.m
index 31bf0ca..a5f7a43 100644
--- a/Juick/ViewControllers/FeedViewController.m
+++ b/Juick/ViewControllers/FeedViewController.m
@@ -14,6 +14,8 @@
#import "AppDelegate.h"
#import "LoginViewController.h"
+NSString * const UserNotAuthenticatedNotificationName = @"UserNotAuthenticated";
+
@interface FeedViewController ()
@property NSString *selectedUser;
@@ -50,7 +52,7 @@
if ([[APIClient sharedClient] isAuthenticated]) {
return YES;
} else {
- [self.navigationController performSegueWithIdentifier:@"loginSegue" sender:self];
+ [[AppDelegate shared] presentLoginView:self];
return NO;
}
}