Permalink
Browse files

Overwrite UIWindows's standard rootViewController getter for iOS 7 st…

…atus bar handling
  • Loading branch information...
scheinem committed Sep 5, 2013
1 parent 0fb1e34 commit f6e3104cc8f02a6f52e1173906b851ac45a9bb33
Showing with 9 additions and 0 deletions.
  1. +9 −0 MTStatusBarOverlay.m
View
@@ -474,6 +474,15 @@ - (void)dealloc {
delegate_ = nil;
}
+////////////////////////////////////////////////////////////////////////
+#pragma mark -
+#pragma mark UIWindow
+////////////////////////////////////////////////////////////////////////
+
+- (UIViewController *)rootViewController {
+ return [[UIApplication sharedApplication] keyWindow].rootViewController;
+}
+
////////////////////////////////////////////////////////////////////////
#pragma mark -
#pragma mark Status Bar Appearance

0 comments on commit f6e3104

Please sign in to comment.