I have a SIGABRT error:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name 'SliderGaloreController''
I have looked at another question quite similar to mine, but I still can't fix it.
Here are the contents of my AppDelegate.h:
#import <UIKit/UIKit.h>
@class SliderGaloreController;
@interface SliderGaloreAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) SliderGaloreController *sliderGaloreController;
Here are the contents of my AppDelegate.m:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:
(NSDictionary *)launchOptions {
NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];
if ([prefs objectForKey:@"PuzzlePicture"] == nil) {
[prefs setBool:FALSE forKey:@"Refresh"];
[prefs setInteger:0 forKey:@"PuzzlePicture"];
[prefs setBool:TRUE forKey:@"CountMoves"];
[prefs setBool:TRUE forKey:@"Timer"];
[prefs setInteger:1 forKey:@"PuzzleLayoutX"];
[prefs setInteger:1 forKey:@"PuzzleLayoutY"];
}
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.sliderGaloreController = [[SliderGaloreController alloc]
initWithNibName:@"SliderGaloreController" bundle:nil];
self.window.rootViewController = self.sliderGaloreController;
[self.window makeKeyAndVisible];
return YES;
Could someone please identify what I have done wrong? This error doesn't allow me to Run my app... Thanks in advance.
UPDATE 1: Fixing up code