1. Create a new Xcode project
- Choose the template of Single View Application
- Delete storyboard and launchscree.xib
2. Delete the two items from info.plist
- Main storyboard file base name
- Launch screen interface file base name
3. Create a new xib
4. Create a new ViewController
5. Associate the view's file owner with the new ViewController
- Click on the Yellow Cube File's Owner
- Enter your ViewController name on 'Identity inspector'
6. Set File's Owner outlet to View
- Click File's Owner
- Click 'Connections inspector'
- Drag 'view' to the white view square on the left hand side.
7. Update AppDelegate
Do this if you want to use this new xib as your root controller.
AppDelegate.h
#import "ViewController.h"
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
AppDelegate.m
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
ViewController * viewController = [[ViewController alloc] initWithNibName:@"HellowWorldView" bundle:nil];
self.window.rootViewController = viewController;
self.window.backgroundColor = [UIColor redColor];
[self.window makeKeyAndVisible];
Run and Voila