I have a UITableViewController that uses custom table view cells (and I have created an XIB for my custom UITableViewCell subclass)
When my app attempts to load the table view controller it crashes with the following error:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/CoolDocsMan/Library/Application Support/iPhone Simulator/5.1/Applications/Z7BB7085F-37A7-4B92-89A3-37EC34531B08/FunkySpaces.app> (loaded)' with name 'AdminConfirmTableViewCell''
Following one of the suggestions in the post Could not load NIB in bundle, I checked the app folder in my Libraries by exploring contents of:
/Users/CoolDocsMan/Library/Application Support/iPhone Simulator/5.1/Applications/Z7BB7085F-37A7-4B92-89A3-37EC34531B08/FunkySpaces.app
I am using the same technique for other similar tableVCs but found that while all other XIB files were properly translated into .nib this specific tableview cell XIB got tranlated with an extra space at its end.
i.e. 'AdminConfirmTableViewCell .nib' instead of 'AdminConfirmTableViewCell.nib'
I did a global search in XCode to see if I had made a typo and inserted an extra space after AdminConfirmTableViewCell, but found none.
Here is section of code from the ViewDidLoad of the tableVC which contains the AdminConfirmTableViewCell:
//Load the NIB file
UINib *nib = [UINib nibWithNibName:@"AdminConfirmTableViewCell" bundle:nil];
//register this NIB whch containes the cell
[[self tableView] registerNib:nib forCellReuseIdentifier:@"AdminConfirmTableViewCell"];
Thanks!