I have the following code in my App Delegate file:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
MBFeedViewController *feedViewController = [[MBFeedViewController alloc] init];
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
[self.window setRootViewController:feedViewController];
[self.window makeKeyAndVisible];
return YES;
}
Then when I run my app, the console outputs the message:
Application windows are expected to have a root view controller at the end of application launch
Can't figure this one out. FeedViewController
is not nil
when I set the window's RootViewController
.