From 5bc37705344daa3a7a887fedc9e1e5fabe2c2b6c Mon Sep 17 00:00:00 2001 From: Saeed Bashir Date: Thu, 22 Feb 2018 13:57:57 +0500 Subject: [PATCH] Statusbar visibility on Login and Registration screen (#1076) --- Source/OEXLoginViewController.m | 4 ---- Source/OEXRegistrationViewController.m | 4 ---- Source/OEXRouter.m | 4 ++-- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/Source/OEXLoginViewController.m b/Source/OEXLoginViewController.m index 85d899c9a1..c78f24afc1 100644 --- a/Source/OEXLoginViewController.m +++ b/Source/OEXLoginViewController.m @@ -763,10 +763,6 @@ - (BOOL) isRTL { return [UIApplication sharedApplication].userInterfaceLayoutDirection == UIUserInterfaceLayoutDirectionRightToLeft; } -- (UIStatusBarStyle)preferredStatusBarStyle { - return [OEXStyles sharedStyles].standardStatusBarStyle; -} - - (BOOL) shouldAutorotate { return false; } diff --git a/Source/OEXRegistrationViewController.m b/Source/OEXRegistrationViewController.m index 67f2108edc..f6aeacddae 100644 --- a/Source/OEXRegistrationViewController.m +++ b/Source/OEXRegistrationViewController.m @@ -490,10 +490,6 @@ - (void)showProgress:(BOOL)status { } } -- (UIStatusBarStyle)preferredStatusBarStyle { - return self.environment.styles.standardStatusBarStyle; -} - - (BOOL) shouldAutorotate { return false; } diff --git a/Source/OEXRouter.m b/Source/OEXRouter.m index 5aa86530d5..5cf29b48b0 100644 --- a/Source/OEXRouter.m +++ b/Source/OEXRouter.m @@ -134,7 +134,7 @@ - (UINavigationController *) loginViewController { OEXLoginViewController* loginController = [[UIStoryboard storyboardWithName:@"OEXLoginViewController" bundle:nil] instantiateViewControllerWithIdentifier:@"LoginView"]; loginController.delegate = self; loginController.environment = self.environment; - UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:loginController]; + ForwardingNavigationController *navController = [[ForwardingNavigationController alloc] initWithRootViewController:loginController]; return navController; } @@ -142,7 +142,7 @@ - (UINavigationController *) loginViewController { - (void)showSignUpScreenFromController:(UIViewController*)controller completion:(void(^)(void))completion { self.registrationCompletion = completion; OEXRegistrationViewController* registrationController = [[OEXRegistrationViewController alloc] initWithEnvironment:self.environment]; - UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:registrationController]; + ForwardingNavigationController *navController = [[ForwardingNavigationController alloc] initWithRootViewController:registrationController]; registrationController.delegate = self; [self presentViewController:navController fromController:[controller topMostController] completion:nil];