Eliminate UIKit warning about root view controller
Opened this issue · 0 comments
tonyxiao commented
If I call [MTStatusBarOverlay sharedInstance]
inside application:didFinishLaunchingWithOptions:
, I get the following error message logged to console
Application windows are expected to have a root view controller at the end of application launch
Setting self.rootViewController = [[UIViewController alloc] init];
inside the init method of status bar overlay fixes the warning.