The answer depends on what you have in your MainWindow.xib file. Anything defined there will have to be recreated in your code.
Here are the steps I had to take to go xib-less. They are probably the minimum, since I never used IB on any of my projects.
1. Under the Project menu, choose Edit Active Target "<target name>". Select the Properties tab and blank out the Main Nib File field. Close the Target Info window.
2. Under the Other Sources group and edit the main.m file. In the UIApplicationMain function call, change the last parameter to the name of your application delegate class.
Code:
int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
3. In your application delegate you need to create a window object. I do this in -applicationDidFinishLaunching:. If you defined anything else in your MainWindow.xib, you can probably create that here, too.
Code:
- (void)applicationDidFinishLaunching:(UIApplication *)application
{
UIWindow *appWindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window = appWindow;
[appWindow release];
}
4. Delete MainWindow.xib from the Resources group.