So initially I thought I wasn’t going to need XIB files and can generate my view programatically with loadView, therefore, when I modeled out my classes, I decided not to create the XIB file.
Now I changed my mind and decided I DO want a xib file to my already created classes. So I previously had an HomeViewController.m/h files. In XCode, I went File–> New–> User Interface–> View, and created an HomeViewController.xib file.
In my App Delegate, I tried doing this:
HomeViewController *home = [[HomeViewController alloc] init];
self.window.rootViewController = home;
I also tried this:
HomeViewController *home = [[HomeViewController alloc] initWithNibName:@"HomeViewController" bundle:nil];
self.window.rootViewController = home;
In both cases, I get a SIGABRT error. If I DON’T add the home UIViewController to the rootViewController, I get no error, but obviously nothing on screen.
Thoughts?
Most probably your nib objects refer to other class..
In you xib file..in the identity inspector..make sure every object has the class name of HomeViewController .
Hope it helps.