I have got a sample app where i have delegate method and a main controller and mainwindow.xib.
when i application is loaded it directly loading.But i want to do some changes like adding buttons and other UI things.But i dont have a nib file.So i added new nib file name called Newview.xib.
So my requirement is how to load this nib file on launch, what all changes i have to make in appdelegate method.Present code which is running is below
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
mainController = [[MainController alloc] init];
[window addSubview:mainController.view];
[window makeKeyAndVisible];
return YES;
}
In your sample application, the app gets the
.xib-file by searching for one with the same name as its view controller. In your new situation, where you would like to define yourself which.xib-file to use, you can implement:and specify the name of your
.xibas the first argument (without “.xib” attached to it).