Skip to content

Commit

Permalink
Merge pull request #31 from stefreak/master
Browse files Browse the repository at this point in the history
pass through preferredStatusBarStyle and preferredStatusBarUpdateAnimation requests
  • Loading branch information
robbdimitrov committed Nov 30, 2014
2 parents 29f8f75 + 98c1800 commit 145246a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions RDVTabBarController/RDVTabBarController.m
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ - (void)viewWillAppear:(BOOL)animated {
[self setTabBarHidden:self.isTabBarHidden animated:NO];
}

- (UIStatusBarStyle)preferredStatusBarStyle {
return self.selectedViewController.preferredStatusBarStyle;
}

- (UIStatusBarAnimation)preferredStatusBarUpdateAnimation {
return self.selectedViewController.preferredStatusBarUpdateAnimation;
}

- (NSUInteger)supportedInterfaceOrientations {
UIInterfaceOrientationMask orientationMask = UIInterfaceOrientationMaskAll;
for (UIViewController *viewController in [self viewControllers]) {
Expand Down Expand Up @@ -110,6 +118,8 @@ - (void)setSelectedIndex:(NSUInteger)selectedIndex {
[[[self selectedViewController] view] setFrame:[[self contentView] bounds]];
[[self contentView] addSubview:[[self selectedViewController] view]];
[[self selectedViewController] didMoveToParentViewController:self];

[self setNeedsStatusBarAppearanceUpdate];
}

- (void)setViewControllers:(NSArray *)viewControllers {
Expand Down

0 comments on commit 145246a

Please sign in to comment.