What to do when “Application windows are expected to have a root view controller at the end of application launch” in Xcode5

Good evening, this is Bono.

When using Xcode5, I sometimes get a warning that "Application windows are expected to have a root view controller at the end of the application launch".

If you see "Application windows are expected to have a root view controller

What to do when you get the following warning.

Screenshot 2014 01 03 1 50 22

At that time, the following settings should be made.

Set the root view

Open AppDelegate,

[self.window addSubview: viewController.view];

is corrected to the following.

[self.window setRootViewController: viewController];

Does this mean that there must be one root view in the app?