*Update: This now doesn't work on either the iPhone or the Simulator. After I ran a clean build I got the error on the simulator:
Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/572536B3-5E7D-4F2B-8D80-4345412DCF10/Quotes.app> (loaded)' with name 'RootViewController'
I have inspected the MainWindow.xib file and there is no mention of the RootViewController. I renamed this much earlier to CategoryViewController.
Here is my CategoryViewController at the request of @megger:
#import <UIKit/UIKit.h>
#import "Category.h"
#import "AddSubjectController.h"
#import "SubjectViewController.h"
#import "SBTableAlert.h"
@class SubjectViewController;
@class AddSubjectController;
@class SearchViewController;
@interface CategoryViewController : UITableViewController <UIAlertViewDelegate, SBTableAlertDelegate, SBTableAlertDataSource> {
NSMutableArray *categories;
NSMutableArray *allCategories;
NSMutableArray *subjects;
NSMutableArray *allSubjects;
AddSubjectController *addSubController;
SubjectViewController *subViewController;
SearchViewController *svc;
NSIndexPath* checkedIndexPath;
}
@property (nonatomic, retain) NSMutableArray *categories;
@property (nonatomic, retain) NSMutableArray *allCategories;
@property (nonatomic, retain) Subject *selectedSubject;
@property (nonatomic, retain) Quote *selectedQuote;
@property (nonatomic, retain) NSMutableArray *allSubjects;
@property (nonatomic, retain) NSMutableArray *subjects;
@property (nonatomic,assign) QuoteMapViewController *qmv;
@property (nonatomic,assign) SearchViewController *svc;
@property (nonatomic, assign) NSInteger mySection;
@property (nonatomic, assign) NSInteger myRow;
@property (nonatomic, retain) NSIndexPath* checkedIndexPath;
@end