Skip to content

Commit ccad864

Browse files
committed
fix: preferredStatusBarStyle
1 parent d70a081 commit ccad864

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
0.6.1
2+
3+
- fix `-preferredStatusBarStyle`
4+
15
0.6.0
26

37
- *Notice*: default behavior change. If **VC** has set left item in `-viewDidLoad`, then interactive pop will be disabled by default, you can still set `rt_disableInteractivePop` to **NO** if you really want it.

RTRootNavigationController.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'RTRootNavigationController'
11-
s.version = '0.6.0'
11+
s.version = '0.6.1'
1212
s.summary = 'Transparently make every view controller has its own navigation bar'
1313
s.description = <<-DESC
1414
More and more apps use custom navigation bar for each different view controller, instead of one common, gloabal navigation bar.

RTRootNavigationController/Classes/RTRootNavigationController.m

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,21 @@ - (void)setNavigationBarHidden:(BOOL)hidden animated:(BOOL)animated
504504
}
505505
}
506506

507+
- (UIStatusBarStyle)preferredStatusBarStyle
508+
{
509+
return [self.topViewController preferredStatusBarStyle];
510+
}
511+
512+
- (BOOL)prefersStatusBarHidden
513+
{
514+
return [self.topViewController prefersStatusBarHidden];
515+
}
516+
517+
- (UIStatusBarAnimation)preferredStatusBarUpdateAnimation
518+
{
519+
return [self.topViewController preferredStatusBarUpdateAnimation];
520+
}
521+
507522
@end
508523

509524

0 commit comments

Comments
 (0)