Last active
September 21, 2015 19:03
-
-
Save aaustin/af3212c38074da42dd41 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[Branch getInstance] initSessionWithLaunchOptions:launchOptions andRegisterDeepLinkHandler:^(NSDictionary *deepLinkParams, NSError *error) { | |
if (!error) { | |
NSLog(@"finished init with params = %@", [deepLinkParams description]); | |
if ([deepLinkParams objectForKey:@"monster_id"]) { | |
UINavigationController *navController = (UINavigationController *)self.window.rootViewController; | |
NSString * storyboardName = @"Main"; | |
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:storyboardName bundle: nil]; | |
UIViewController *nextVC = [storyboard instantiateViewControllerWithIdentifier:@"MonsterViewController"]; | |
[navController setViewControllers:@[nextVC] animated:YES]; | |
} | |
} else { | |
NSLog(@"failed init: %@", error); | |
} | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment