How would I change the default loaded view controller in Xcode?

The default XIB file loaded when your application start is MainWindow. Xib by default.

The default XIB file loaded when your application start is MainWindow. Xib by default. If you want you app to load another XIB instead, this can be changed in the Info.

Plist file of your project. In this XIB loaded when the app is launched (MainWindow. XIB by default), you will find: a placeholder for the File's Owner (like in any XIB) which in the case of the XIB loaded by the application on startup is the UIApplication itself.

A UIWindow (the main and unique window of your iPhone app), an object that acts as the delegate of your UIApplication (commonly called "the AppDelegate") And probably a UIViewController too. When the XIB is loaded at startup, the AppDelegate objet is instanciated (like all objects in the XIB except the File's Owner) and as it is set as the delegate of the application, application:didFinishLaunhcingWithOptions: will be executed. This code then generally add the viewController's view as a subview of your app window using a line like self.

Window addSubview:self.viewController.view. (As your AppDelegate have an IBOutlet that points to the ViewController in the XIB) If you need to change the class of the ViewController used in your MainWindow. Xib, change the class of the UIViewController in Interface Builder, and also change the type of the associated IBOutlet in the AppDelegate header file.

How would I change this in the info. Plist? – iOS developer Sep 22 at 13:37 Errr... open the Info.

Plist in Xcode and change the corresponding line, that's all. See the Apple documentation and especially this page. As explained in the doc, the corresponding key is NSMainNibFile, which is displayed in a human-readable manner as "Main nib file base name”.

– AliSoftware Sep 22 at 13:44.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions