I have this bool in my AppDelegate.m:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
Use this in your AppDelegate.m
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:UIScreen.mainScreen.bounds];
HomeController *viewController = // initialise it
self.window.rootViewController = viewController;
[self.window makeKeyAndVisible];
return YES;
}
or in the storyBoard just put the pointing arror to the view controller which you want to make as a root view controller.
The stack trace explains what's wrong:
- Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'MainStoryboard' in bundle NSBundle (loaded)' *
Your storyboard isn't called "MainStoryboard".