I'm playing around with a single-window template. I have a classic MainStoryboard.storyboard
file and I have only 1 view controller (which is an Initial View Controller all by default)
What I do is I try to implement the behaviour from this example and the Xcode tells me this:
Application windows are expected to have a root view controller at the end of application launch
I don't understand what I'm doing wrong. Here's the piece of code where I create a new UIWindow
:
UIWindow *overlayWindow = [[UIWindow alloc] init];
overlayWindow = [[ACStatusBarOverlayWindow alloc] initWithFrame:CGRectZero];
overlayWindow.hidden = NO;
And of course my appDelegate
starts with this:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
return YES;
}
What am I doing wrong?