Skip to content

Instantly share code, notes, and snippets.

@augustj
Last active August 29, 2015 14:03
Show Gist options
  • Save augustj/46e11790f667528bcb7f to your computer and use it in GitHub Desktop.
Save augustj/46e11790f667528bcb7f to your computer and use it in GitHub Desktop.
Objection/DI Compatible Storyboard
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
JSObjectionInjector *injector = [JSObjection createInjector];
[JSObjection setDefaultInjector:injector];
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor whiteColor];
UIStoryboard *storyboard = [CFStoryboard storyboardWithName:@"Main" bundle:nil];
self.window.rootViewController = [storyboard instantiateViewControllerWithIdentifier:@"Splash"];
[self.window makeKeyAndVisible];
return YES;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment