If you want to have multiple XIB,follow the below steps
First remove the storyboard file from your project
In Deployment Info of TARGETS,delete Main from Main Interface
The create the View(XIB). Give the name as ViewController.Xib
Then in appDelegate.h
import - #import "ViewController.h"
@property (strong, nonatomic) ViewController *vc;
Then in appDelegate.m
@synthesize vc;
Then in didFininshLaunchingWithOptions
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
self.window = [[UIWindow alloc]initWithFrame:[[UIScreen mainScreen]bounds]];
vc = [[ViewController alloc]initWithNibName:@"ViewController" bundle:nil];
UINavigationController *navigationVC = [[UINavigationController alloc]initWithRootViewController:vc];
self.window.rootViewController = navigationVC;
self.window.backgroundColor = [UIColor clearColor];
[self.window makeKeyAndVisible];
return YES;
}
Next if want to crate multiple xib,you can create it with .h,.m and xib according to your requirements.