I have created a blank project using the single view option on Xcode templates.
WHen this project loads, the rootViewController class is loaded, but I don’t see on the app’s delegate any line loading the rootViewController.
As I generally don’t use interface builder and I create my controllers programmatically I ask: where is the rootViewController loaded and how do I change the app to load another viewController instead?
thanks.
Probably in your MainWindow.xib, you define the first controller that you want to load, in your case it is
rootViewController.didFinishLaunchingWithOptions:. This method is always known to be the first to be called when launching an application. Try to check here. The Main NIB File is set in Info.plist ( located in the target settings) so that you will already have a NIB loaded when your application delegate is invoked.