Change overridden methods for status bar style

Signed-off-by: ismailgulek <gulekismail@gmail.com>
This commit is contained in:
ismailgulek
2020-04-08 18:02:25 +03:00
parent c1cc2c704f
commit 92e6fc87ad
3 changed files with 15 additions and 60 deletions

View File

@@ -18,28 +18,14 @@
@implementation RiotNavigationController
- (UIStatusBarStyle)preferredStatusBarStyle
- (UIViewController *)childViewControllerForStatusBarStyle
{
if (self.topViewController)
{
// Return the preferred style of the top view controller.
return [self.topViewController preferredStatusBarStyle];
}
// Keep the default UINavigationController style.
return [super preferredStatusBarStyle];
return self.topViewController;
}
- (BOOL)prefersStatusBarHidden
- (UIViewController *)childViewControllerForStatusBarHidden
{
if (self.topViewController)
{
// Retrieve this information from the top view controller.
return [self.topViewController prefersStatusBarHidden];
}
// Keep the default UINavigationController mode.
return [super prefersStatusBarHidden];
return self.topViewController;
}
@end