Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Statusbar visibility on Login and Registration screen (#1076)
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedbashir authored Feb 22, 2018
1 parent 1e16dc3 commit 5bc3770
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
4 changes: 0 additions & 4 deletions Source/OEXLoginViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -763,10 +763,6 @@ - (BOOL) isRTL {
return [UIApplication sharedApplication].userInterfaceLayoutDirection == UIUserInterfaceLayoutDirectionRightToLeft;
}

- (UIStatusBarStyle)preferredStatusBarStyle {
return [OEXStyles sharedStyles].standardStatusBarStyle;
}

- (BOOL) shouldAutorotate {
return false;
}
Expand Down
4 changes: 0 additions & 4 deletions Source/OEXRegistrationViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -490,10 +490,6 @@ - (void)showProgress:(BOOL)status {
}
}

- (UIStatusBarStyle)preferredStatusBarStyle {
return self.environment.styles.standardStatusBarStyle;
}

- (BOOL) shouldAutorotate {
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions Source/OEXRouter.m
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,15 @@ - (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;
}

- (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];
Expand Down

0 comments on commit 5bc3770

Please sign in to comment.