Skip to content
Browse files

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

…atus bar handling
  • Loading branch information...
1 parent 0fb1e34 commit f6e3104cc8f02a6f52e1173906b851ac45a9bb33 @scheinem scheinem committed
Showing with 9 additions and 0 deletions.
  1. +9 −0 MTStatusBarOverlay.m
View
9 MTStatusBarOverlay.m
@@ -476,6 +476,15 @@ - (void)dealloc {
////////////////////////////////////////////////////////////////////////
#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.
Something went wrong with that request. Please try again.