applications expected to have a root view controller console

You should replace the

[window addSubview:tabBarController.view];

to

[self.window setRootViewController:tabBarController];

Maybe you built your project with ‘Empty Application‘ and forgot to set the rootViewController in your didFinishLaunchingWithOptions (which exists in your AppDelegate.m).

However, if you build your project with ‘Single View Application‘ or some other type, the project will set the rootViewController via xib by default (which might be a MainWindow.xib in your project).

Leave a Comment