diff options
author | Vitaly Takmazov | 2019-10-02 13:59:51 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-10-02 13:59:51 +0300 |
commit | 33539a3c9c8534776722aa1148499f984e0019e7 (patch) | |
tree | 6f47880a9efd4e6e240ff55c043422f68dba6936 /Juick/ViewControllers/FeedViewController.m | |
parent | d9a6f5e85d9cffed7e8bf84b6e69b27d7db67582 (diff) |
Move loginSegue to Tab bar controller
Diffstat (limited to 'Juick/ViewControllers/FeedViewController.m')
-rw-r--r-- | Juick/ViewControllers/FeedViewController.m | 4 |
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; } } |